Mercurial > dropbear
diff dbutil.h @ 744:504f33c684b5 kexguess
Add sentinel attribute
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 03 Apr 2013 00:32:05 +0800 |
parents | 9a5438271556 |
children | 7dcb46da72d9 a625f9e135a4 |
line wrap: on
line diff
--- 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;