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 <dennis.wildmark@assaabloy.com>
This commit is contained in:
Dennis Wildmark 2019-03-11 10:09:22 +01:00 committed by Kumar Gala
commit 03dec5b814

View file

@ -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.