From 53012b105edf96721500a9d29635eed9ae2a82de Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 1 Feb 2021 18:32:25 +0100 Subject: [PATCH] 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 --- lib/krb5_wrap/krb5_samba.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.34.1