svn rev #22363: trunk/src/lib/krb5/krb/
raeburn@MIT.EDU
raeburn at MIT.EDU
Fri May 22 13:19:38 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22363
Commit By: raeburn
Log Message:
Use printf format attribute only with gcc.
Changed Files:
U trunk/src/lib/krb5/krb/t_pac.c
U trunk/src/lib/krb5/krb/t_princ.c
Modified: trunk/src/lib/krb5/krb/t_pac.c
===================================================================
--- trunk/src/lib/krb5/krb/t_pac.c 2009-05-22 14:31:28 UTC (rev 22362)
+++ trunk/src/lib/krb5/krb/t_pac.c 2009-05-22 17:19:37 UTC (rev 22363)
@@ -96,8 +96,10 @@
static time_t authtime = 1120440609;
static const char *user = "w2003final$@WIN2K3.THINKER.LOCAL";
+#if !defined(__cplusplus) && (__GNUC__ > 2)
static void err(krb5_context ctx, krb5_error_code code, const char *fmt, ...)
__attribute__((__format__(__printf__, 3, 0)));
+#endif
static void
err(krb5_context ctx, krb5_error_code code, const char *fmt, ...)
Modified: trunk/src/lib/krb5/krb/t_princ.c
===================================================================
--- trunk/src/lib/krb5/krb/t_princ.c 2009-05-22 14:31:28 UTC (rev 22362)
+++ trunk/src/lib/krb5/krb/t_princ.c 2009-05-22 17:19:37 UTC (rev 22363)
@@ -38,8 +38,10 @@
* there when it's destroyed.
*/
+#if !defined(__cplusplus) && (__GNUC__ > 2)
static void err(krb5_context ctx, krb5_error_code code, const char *fmt, ...)
__attribute__((__format__(__printf__, 3, 0)));
+#endif
static void
err(krb5_context ctx, krb5_error_code code, const char *fmt, ...)
More information about the cvs-krb5
mailing list