diff options
author | Andreas Schneider <asn@samba.org> | 2021-02-01 18:32:25 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-02-01 21:50:32 +0000 |
commit | 53012b105edf96721500a9d29635eed9ae2a82de (patch) | |
tree | 9e53eb689ab60ecba840b96f8c10c0cd0e402a13 /lib/krb5_wrap | |
parent | 5d1eef269a1f56d08aa4456e3bf66622515f5c5e (diff) | |
download | samba-53012b105edf96721500a9d29635eed9ae2a82de.tar.gz |
lib:krb5_wrap: Check the format string of krb5_warnx()
error: format string is not a string literal [-Werror,-Wformat-nonliteral]
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r-- | lib/krb5_wrap/krb5_samba.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h index ca9a893e4f7..9550447b2c5 100644 --- a/lib/krb5_wrap/krb5_samba.h +++ b/lib/krb5_wrap/krb5_samba.h @@ -389,7 +389,8 @@ int smb_krb5_principal_get_type(krb5_context context, krb5_const_principal principal); #if !defined(HAVE_KRB5_WARNX) -krb5_error_code krb5_warnx(krb5_context context, const char *fmt, ...); +krb5_error_code krb5_warnx(krb5_context context, const char *fmt, ...) + PRINTF_ATTRIBUTE(2, 0); #endif krb5_error_code smb_krb5_cc_copy_creds(krb5_context context, |