Add gcc printf attribute for kdc_err prototype
authorEzra Peisach <epeisach@mit.edu>
Fri, 1 Jan 2010 13:00:08 +0000 (13:00 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 1 Jan 2010 13:00:08 +0000 (13:00 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23562 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/kdc_util.h

index a8f7e314fc03701db9d7b967c1f5b9ac6c652dbc..bd576e93e78cf21e8f7886122882d998ed996ada 100644 (file)
@@ -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);