From 03dec5b814799104f304d672bff09ae1500024c8 Mon Sep 17 00:00:00 2001 From: Dennis Wildmark Date: Mon, 11 Mar 2019 10:09:22 +0100 Subject: [PATCH] logging: fix compiler warning when using -Wextra flag with gcc Fixes the warning -Wunused-parameter that is added with -Wextra in the GCC compiler. Chose to void the unused parameter inside the function. Testcompiled with -Wall -Wextra -Werror and builds cleanly. Signed-off-by: Dennis Wildmark --- include/logging/log_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/logging/log_core.h b/include/logging/log_core.h index a2613c3ad6c..c17c4a6eca0 100644 --- a/include/logging/log_core.h +++ b/include/logging/log_core.h @@ -422,7 +422,7 @@ static inline u32_t log_dynamic_source_id(struct log_source_dynamic_data *data) static inline __printf_like(1, 2) void log_printf_arg_checker(const char *fmt, ...) { - + ARG_UNUSED(fmt); } /** @brief Standard log with no arguments.