From adc5fab1416cd6049f2fcaaa539254fb0d19aca4 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 20 May 2020 15:01:39 +0200 Subject: [PATCH] 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 --- subsys/shell/shell_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/shell/shell_utils.c b/subsys/shell/shell_utils.c index 2580fc31e8d..4cca3f4a7c9 100644 --- a/subsys/shell/shell_utils.c +++ b/subsys/shell/shell_utils.c @@ -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) {