From: Karel Zak Date: Fri, 18 Jun 2021 14:29:02 +0000 (+0200) Subject: include/c: add __format__ attribute X-Git-Tag: v2.38-rc1~436 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01085557eb4677ff2348b546ee6aa1ebed0d8e8b;p=thirdparty%2Futil-linux.git include/c: add __format__ attribute Reported-by: Jan Pazdziora Signed-off-by: Karel Zak --- diff --git a/include/c.h b/include/c.h index b891ad4808..e7842c1064 100644 --- a/include/c.h +++ b/include/c.h @@ -217,7 +217,7 @@ prog_inv_sh_nm_from_file(char *f, char stripext) #ifndef HAVE_ERR_H -static inline void +static inline void __attribute__ ((__format__ (__printf__, 4, 5))) errmsg(char doexit, int excode, char adderr, const char *fmt, ...) { fprintf(stderr, "%s: ", program_invocation_short_name);