From f267ca1f3a51a465ee98d0cfd230c40ddfeda332 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 3 Apr 2013 00:32:05 +0800 Subject: Add sentinel attribute --HG-- branch : kexguess --- dbutil.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'dbutil.h') diff --git a/dbutil.h b/dbutil.h index fc01251..3af79f7 100644 --- a/dbutil.h +++ b/dbutil.h @@ -35,14 +35,12 @@ void startsyslog(); #ifdef __GNUC__ #define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args))) -#else -#define ATTRIB_PRINTF(fmt,args) -#endif - -#ifdef __GNUC__ #define ATTRIB_NORETURN __attribute__((noreturn)) +#define ATTRIB_SENTINEL __attribute__((sentinel)) #else +#define ATTRIB_PRINTF(fmt,args) #define ATTRIB_NORETURN +#define ATTRIB_SENTINEL #endif extern void (*_dropbear_exit)(int exitcode, const char* format, va_list param) ATTRIB_NORETURN; -- cgit v1.2.3