]> eyrie.org Git - kerberos/krb5-sync.git/commitdiff
Add format attributes recommended by current GCC
authorRuss Allbery <eagle@eyrie.org>
Wed, 19 Aug 2015 02:55:38 +0000 (19:55 -0700)
committerRuss Allbery <eagle@eyrie.org>
Wed, 19 Aug 2015 02:55:38 +0000 (19:55 -0700)
plugin/error.c
plugin/logging.c

index 88ab54a41a4723d7138df77d97c1d948b3110ee3..29ee8068309c7db59062cffe0871a67f24437acc 100644 (file)
@@ -5,6 +5,7 @@
  * message in the Kerberos context.
  *
  * Written by Russ Allbery <eagle@eyrie.org>
+ * Copyright 2015 Russ Allbery <eagle@eyrie.org>
  * Copyright 2013
  *     The Board of Trustees of the Leland Stanford Junior University
  *
@@ -28,7 +29,7 @@
  * set, which is normally the same as the one passed in, but which may change
  * if we can't allocate memory.
  */
-static krb5_error_code
+static krb5_error_code __attribute__((__format__(printf, 3, 0)))
 set_error(krb5_context ctx, krb5_error_code code, const char *format,
           va_list args)
 {
index d95922cb30f9e36e9caa2208f9ec02deb349bf7e..eabe941668e10dca5994d16872b52d6e3f0f2acf 100644 (file)
@@ -8,6 +8,7 @@
  * configuration option is set to false.
  *
  * Written by Russ Allbery <eagle@eyrie.org>
+ * Copyright 2015 Russ Allbery <eagle@eyrie.org>
  * Copyright 2013
  *     The Board of Trustees of the Leland Stanford Junior University
  *
@@ -28,7 +29,7 @@
  * message to log, we just do nothing, since these functions are only used for
  * supplemental logging.
  */
-static void
+static void __attribute__((__format__(printf, 3, 0)))
 log_syslog(kadm5_hook_modinfo *config, int priority, const char *fmt,
            va_list args)
 {