shell: Fix checks of Kconfig options
The compiler was generating errors of the form error: "CONFIG_LOG" is not defined, evaluates to 0 [-Werror=undef] when -Wundef is used and the config option was turned off. Change several #if checks to #ifdef. Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
parent
c0b30355fb
commit
3c0c1bfa8d
3 changed files with 3 additions and 3 deletions
|
@ -500,7 +500,7 @@ struct shell_stats {
|
|||
u32_t log_lost_cnt; /*!< Lost log counter.*/
|
||||
};
|
||||
|
||||
#if CONFIG_SHELL_STATS
|
||||
#ifdef CONFIG_SHELL_STATS
|
||||
#define SHELL_STATS_DEFINE(_name) static struct shell_stats _name##_stats
|
||||
#define SHELL_STATS_PTR(_name) (&(_name##_stats))
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue