From: Theodore Ts'o Date: Tue, 17 Aug 2021 21:10:15 +0000 (-0400) Subject: libcom_err: fix suggest-attribute=format -Wall warnings X-Git-Tag: v1.46.4~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c5b2007a5f2b2b9522babcedc68825d90cd43d4;p=thirdparty%2Fe2fsprogs.git libcom_err: fix suggest-attribute=format -Wall warnings Signed-off-by: Theodore Ts'o --- diff --git a/lib/et/com_err.c b/lib/et/com_err.c index d38998a25..7294c6d8c 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;