logging/log_core.h: Fix unused variable diagnose
The current _mode variable can be diagnosed as unused by tools like clang-tidy-14. This add a small fix to by pass this situation and allow run analysis tool without this warning/error. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
60bb584301
commit
09cad20b48
|
@ -240,6 +240,7 @@ static inline char z_log_minimal_level_to_char(int level)
|
|||
Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
|
||||
CONFIG_LOG_DOMAIN_ID, _src, _level, NULL,\
|
||||
0, __VA_ARGS__); \
|
||||
(void)_mode; \
|
||||
if (false) { \
|
||||
/* Arguments checker present but never evaluated.*/ \
|
||||
/* Placed here to ensure that __VA_ARGS__ are*/ \
|
||||
|
|
Loading…
Reference in New Issue