From: Andreas Schneider Date: Mon, 1 Feb 2021 17:32:25 +0000 (+0100) Subject: lib:krb5_wrap: Check the format string of krb5_warnx() X-Git-Tag: tevent-0.11.0~1852 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53012b105edf96721500a9d29635eed9ae2a82de;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison --- 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,