From 3c5b2007a5f2b2b9522babcedc68825d90cd43d4 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 17 Aug 2021 17:10:15 -0400 Subject: [PATCH] libcom_err: fix suggest-attribute=format -Wall warnings Signed-off-by: Theodore Ts'o --- lib/et/com_err.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/et/com_err.c b/lib/et/com_err.c index d38998a..7294c6d 100644 --- a/lib/et/com_err.c +++ b/lib/et/com_err.c @@ -62,7 +62,8 @@ default_com_err_proc (const char *whoami, errcode_t code, const fflush(stderr); } -typedef void (*errf) (const char *, errcode_t, const char *, va_list); +typedef void (*errf) (const char *, errcode_t, const char *, va_list) + COM_ERR_ATTR((format(printf, 3, 0))); errf com_err_hook = default_com_err_proc; -- 1.8.3.1