From 2885da209b6e7fc42a195ff65158a4c931995b73 Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Wed, 25 Mar 2020 07:44:28 +0100 Subject: [PATCH] logging: Replace __attribute__((unused)) with __unused Replaced gcc specific with generic. Signed-off-by: Krzysztof Chruscinski --- include/logging/log.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/logging/log.h b/include/logging/log.h index 831dc807689..8c329c41ecd 100644 --- a/include/logging/log.h +++ b/include/logging/log.h @@ -403,17 +403,17 @@ static inline char *log_strdup(const char *str) LOG_ITEM_DYNAMIC_DATA(GET_ARG1(__VA_ARGS__)); \ \ static const struct log_source_const_data * \ - __log_current_const_data __attribute__((unused)) = \ + __log_current_const_data __unused = \ _LOG_LEVEL_RESOLVE(__VA_ARGS__) ? \ &LOG_ITEM_CONST_DATA(GET_ARG1(__VA_ARGS__)) : NULL; \ \ static struct log_source_dynamic_data * \ - __log_current_dynamic_data __attribute__((unused)) = \ + __log_current_dynamic_data __unused = \ (_LOG_LEVEL_RESOLVE(__VA_ARGS__) && \ IS_ENABLED(CONFIG_LOG_RUNTIME_FILTERING)) ? \ &LOG_ITEM_DYNAMIC_DATA(GET_ARG1(__VA_ARGS__)) : NULL; \ \ - static const u32_t __log_level __attribute__((unused)) = \ + static const u32_t __log_level __unused = \ _LOG_LEVEL_RESOLVE(__VA_ARGS__) /** @@ -424,7 +424,7 @@ static inline char *log_strdup(const char *str) * */ #define LOG_LEVEL_SET(level) \ - static const u32_t __log_level __attribute__((unused)) = \ + static const u32_t __log_level __unused = \ _LOG_LEVEL_RESOLVE(level) /**