shell: Fixed compile warning with extern array declaration
The extern array declaration of size 0 gives a warning when compiling with GCC. Updated to use [] rather than [0]. Signed-off-by: Emil Gydesen <emil_gydesen@bose.com>
This commit is contained in:
parent
bf414c5559
commit
adc5fab141
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@
|
|||
#include "shell_utils.h"
|
||||
#include "shell_wildcard.h"
|
||||
|
||||
extern const struct shell_cmd_entry __shell_root_cmds_start[0];
|
||||
extern const struct shell_cmd_entry __shell_root_cmds_end[0];
|
||||
extern const struct shell_cmd_entry __shell_root_cmds_start[];
|
||||
extern const struct shell_cmd_entry __shell_root_cmds_end[];
|
||||
|
||||
static inline const struct shell_cmd_entry *shell_root_cmd_get(uint32_t id)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue