Commit 0bb82d59 authored by Russ Allbery's avatar Russ Allbery

Add format attributes recommended by current GCC

parent 31bfa9d7
......@@ -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)
{
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment