From: Ezra Peisach Date: Fri, 1 Jan 2010 13:00:08 +0000 (+0000) Subject: Add gcc printf attribute for kdc_err prototype X-Git-Tag: krb5-1.8-alpha1~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93d6f80d02c4fb7df59cf7c9e59bbbd6a2b51eb3;p=krb5.git Add gcc printf attribute for kdc_err prototype git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23562 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h index a8f7e314f..bd576e93e 100644 --- a/src/kdc/kdc_util.h +++ b/src/kdc/kdc_util.h @@ -147,7 +147,11 @@ krb5_error_code kdc_initialize_rcache (krb5_context, char *); krb5_error_code setup_server_realm (krb5_principal); void -kdc_err(krb5_context call_context, errcode_t code, const char *fmt, ...); +kdc_err(krb5_context call_context, errcode_t code, const char *fmt, ...) +#if !defined(__cplusplus) && (__GNUC__ > 2) + __attribute__((__format__(__printf__, 3, 4))) +#endif +; /* network.c */ krb5_error_code listen_and_process (void);