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
@@ -411,7 +411,7 @@ krb5_vlog_msg(krb5_context context,
|
||||
int level,
|
||||
const char *fmt,
|
||||
va_list ap)
|
||||
__attribute__((format (printf, 5, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 5, 0)))
|
||||
{
|
||||
|
||||
char *msg = NULL;
|
||||
@@ -449,7 +449,7 @@ krb5_vlog(krb5_context context,
|
||||
int level,
|
||||
const char *fmt,
|
||||
va_list ap)
|
||||
__attribute__((format (printf, 4, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 4, 0)))
|
||||
{
|
||||
return krb5_vlog_msg(context, fac, NULL, level, fmt, ap);
|
||||
}
|
||||
@@ -461,7 +461,7 @@ krb5_log_msg(krb5_context context,
|
||||
char **reply,
|
||||
const char *fmt,
|
||||
...)
|
||||
__attribute__((format (printf, 5, 6)))
|
||||
__attribute__ ((__format__ (__printf__, 5, 6)))
|
||||
{
|
||||
va_list ap;
|
||||
krb5_error_code ret;
|
||||
@@ -479,7 +479,7 @@ krb5_log(krb5_context context,
|
||||
int level,
|
||||
const char *fmt,
|
||||
...)
|
||||
__attribute__((format (printf, 4, 5)))
|
||||
__attribute__ ((__format__ (__printf__, 4, 5)))
|
||||
{
|
||||
va_list ap;
|
||||
krb5_error_code ret;
|
||||
@@ -495,7 +495,7 @@ _krb5_debug(krb5_context context,
|
||||
int level,
|
||||
const char *fmt,
|
||||
...)
|
||||
__attribute__((format (printf, 3, 4)))
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)))
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
Reference in New Issue
Block a user