Replace GCC "unused" and "format" attributes with portable macros

This commit is contained in:
Craig Barnes 2020-08-07 20:42:34 +01:00
parent f952d5a305
commit 7eb70a453b
7 changed files with 18 additions and 10 deletions

3
log.c
View file

@ -79,8 +79,7 @@ _log(enum log_class log_class, const char *module, const char *file, int lineno,
static void
_sys_log(enum log_class log_class, const char *module,
const char *file __attribute__((unused)),
int lineno __attribute__((unused)),
const char UNUSED *file, int UNUSED lineno,
const char *fmt, int sys_errno, va_list va)
{
if (!do_syslog)