From: Christian Brauner Date: Sat, 7 Dec 2019 16:39:49 +0000 (+0100) Subject: log: replace compiler attributes X-Git-Tag: lxc-4.0.0~78^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47d8afa2a6c49e3053a8c249a6c497d0f13cc03b;p=thirdparty%2Flxc.git log: replace compiler attributes Signed-off-by: Christian Brauner --- diff --git a/src/lxc/log.h b/src/lxc/log.h index d5bfd42e9..99cc4680b 100644 --- a/src/lxc/log.h +++ b/src/lxc/log.h @@ -245,10 +245,10 @@ static inline void __lxc_log(const struct lxc_log_category *category, */ #define lxc_log_priority_define(acategory, LEVEL) \ \ -ATTR_UNUSED __attribute__ ((format (printf, 2, 3))) \ +__unused __attribute__ ((format (printf, 2, 3))) \ static inline void LXC_##LEVEL(struct lxc_log_locinfo *, const char *, ...); \ \ -ATTR_UNUSED static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ +__unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ const char* format, ...) \ { \ if (lxc_log_priority_is_enabled(acategory, LXC_LOG_LEVEL_##LEVEL)) { \