include/c: add __format__ attribute
Reported-by: Jan Pazdziora <jpazdziora@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
8c6fb9841c
commit
01085557eb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue