Whamcloud - gitweb
libcom_err: fix suggest-attribute=format -Wall warnings
authorTheodore Ts'o <tytso@mit.edu>
Tue, 17 Aug 2021 21:10:15 +0000 (17:10 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 19 Aug 2021 02:39:25 +0000 (22:39 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/et/com_err.c

index d38998a..7294c6d 100644 (file)
@@ -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;