Use __attribute__ ((__name__)) form
Protect against macros named noreturn and so on.
This commit is contained in:

committed by
Viktor Dukhovni

parent
31896397d7
commit
6a0f45c4d7
@@ -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)
|
||||
|
@@ -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);
|
||||
|
@@ -34,6 +34,6 @@
|
||||
/* $Id$ */
|
||||
|
||||
void _lex_error_message (const char *, ...)
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
__attribute__ ((__format__ (__printf__, 1, 2)));
|
||||
|
||||
int yylex(void);
|
||||
|
Reference in New Issue
Block a user