Use __attribute__ ((__name__)) form

Protect against macros named noreturn and so on.
This commit is contained in:
Nicolas Williams
2017-01-31 10:50:54 -06:00
committed by Viktor Dukhovni
parent 31896397d7
commit 6a0f45c4d7
21 changed files with 73 additions and 73 deletions

View File

@@ -70,7 +70,7 @@ init_error_table(const char **msgs, long base, int count)
static void KRB5_CALLCONV
default_proc (const char *whoami, long code, const char *fmt, va_list args)
__attribute__((__format__(__printf__, 3, 0)));
__attribute__ ((__format__ (__printf__, 3, 0)));
static void KRB5_CALLCONV
default_proc (const char *whoami, long code, const char *fmt, va_list args)

View File

@@ -55,11 +55,11 @@ init_error_table (const char**, long, int);
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
com_err_va (const char *, long, const char *, va_list)
__attribute__((format(printf, 3, 0)));
__attribute__ ((__format__ (__printf__, 3, 0)));
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
com_err (const char *, long, const char *, ...)
__attribute__((format(printf, 3, 4)));
__attribute__ ((__format__ (__printf__, 3, 4)));
KRB5_LIB_FUNCTION errf KRB5_LIB_CALL
set_com_err_hook (errf);

View File

@@ -34,6 +34,6 @@
/* $Id$ */
void _lex_error_message (const char *, ...)
__attribute__ ((format (printf, 1, 2)));
__attribute__ ((__format__ (__printf__, 1, 2)));
int yylex(void);