svn rev #22379: branches/krb5-1-7/src/lib/krb5/krb/
tlyu@MIT.EDU
tlyu at MIT.EDU
Mon May 25 01:43:56 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22379
Commit By: tlyu
Log Message:
ticket: 6499
target_version: 1.7
tags: pullup
version_fixed: 1.7
subject: use printf format attribute only with gcc
status: resolved
pull up r22363 from trunk
------------------------------------------------------------------------
r22363 | raeburn | 2009-05-22 19:19:37 +0200 (Fri, 22 May 2009) | 2 lines
Use printf format attribute only with gcc.
Changed Files:
U branches/krb5-1-7/src/lib/krb5/krb/t_pac.c
U branches/krb5-1-7/src/lib/krb5/krb/t_princ.c
Modified: branches/krb5-1-7/src/lib/krb5/krb/t_pac.c
===================================================================
--- branches/krb5-1-7/src/lib/krb5/krb/t_pac.c 2009-05-25 05:43:42 UTC (rev 22378)
+++ branches/krb5-1-7/src/lib/krb5/krb/t_pac.c 2009-05-25 05:43:55 UTC (rev 22379)
@@ -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: branches/krb5-1-7/src/lib/krb5/krb/t_princ.c
===================================================================
--- branches/krb5-1-7/src/lib/krb5/krb/t_princ.c 2009-05-25 05:43:42 UTC (rev 22378)
+++ branches/krb5-1-7/src/lib/krb5/krb/t_princ.c 2009-05-25 05:43:55 UTC (rev 22379)
@@ -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