From 7eb70a453b4ea797d9e85017c6deab6a7bc903a6 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Fri, 7 Aug 2020 20:42:34 +0100 Subject: Replace GCC "unused" and "format" attributes with portable macros --- log.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'log.c') diff --git a/log.c b/log.c index eff6992d..d47e22ac 100644 --- a/log.c +++ b/log.c @@ -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) -- cgit v1.3