# HG changeset patch # User Matt Johnston # Date 1364920325 -28800 # Node ID 504f33c684b54f2a230263ba7b64a80be3d92a98 # Parent 09c5eb71ec96889ff169a4c365232e00c7030c71 Add sentinel attribute diff -r 09c5eb71ec96 -r 504f33c684b5 bignum.h --- a/bignum.h Mon Apr 01 00:13:41 2013 +0800 +++ b/bignum.h Wed Apr 03 00:32:05 2013 +0800 @@ -28,7 +28,7 @@ #include "includes.h" void m_mp_init(mp_int *mp); -void m_mp_init_multi(mp_int *mp, ...); +void m_mp_init_multi(mp_int *mp, ...) ATTRIB_SENTINEL; void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len); void sha1_process_mp(hash_state *hs, mp_int *mp); diff -r 09c5eb71ec96 -r 504f33c684b5 dbutil.h --- a/dbutil.h Mon Apr 01 00:13:41 2013 +0800 +++ b/dbutil.h Wed Apr 03 00:32:05 2013 +0800 @@ -35,14 +35,12 @@ #ifdef __GNUC__ #define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args))) +#define ATTRIB_NORETURN __attribute__((noreturn)) +#define ATTRIB_SENTINEL __attribute__((sentinel)) #else #define ATTRIB_PRINTF(fmt,args) -#endif - -#ifdef __GNUC__ -#define ATTRIB_NORETURN __attribute__((noreturn)) -#else #define ATTRIB_NORETURN +#define ATTRIB_SENTINEL #endif extern void (*_dropbear_exit)(int exitcode, const char* format, va_list param) ATTRIB_NORETURN;