mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fixed printf format warnings for non-errors. This change is null unless
a system header defines a macro __printf0like() using the new printf0 format attribute. uucp's internal ulog() function isn't actually printf-like but uucp normally declares it as such.
This commit is contained in:
parent
06db156986
commit
9d49508644
1 changed files with 4 additions and 0 deletions
|
|
@ -287,7 +287,11 @@ extern boolean fparse_cmd P((char *zcmd, struct scmd *qcmd));
|
|||
#if ANSI_C && HAVE_VFPRINTF
|
||||
extern void ulog P((enum tlog ttype, const char *zfmt, ...))
|
||||
#if GNUC_VERSION > 1
|
||||
#ifdef __printf0like
|
||||
__printf0like (2, 3)
|
||||
#else
|
||||
__attribute__ ((format (printf, 2, 3)))
|
||||
#endif
|
||||
#endif
|
||||
;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue