aboutsummaryrefslogtreecommitdiff
path: root/helper/cli.c
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2021-10-13 15:57:05 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2021-10-21 10:53:20 +0300
commitd3b7ce4b060ff50e4a9ae285fe5e2bc62e940297 (patch)
tree699b841be32730b6f714cbf9ba1e714482522c9f /helper/cli.c
parenta0237360e745c02131b8e7e4316ae7e6caa22274 (diff)
helper: fix zero-size array build errors
Fix "ISO C forbids zero-size array" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'helper/cli.c')
-rw-r--r--helper/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/cli.c b/helper/cli.c
index 8dc6b66fa..e9ca2f783 100644
--- a/helper/cli.c
+++ b/helper/cli.c
@@ -47,7 +47,7 @@ typedef struct {
odph_cli_param_t cli_param;
struct sockaddr_in addr;
uint32_t num_user_commands;
- user_cmd_t user_cmd[0];
+ user_cmd_t user_cmd[];
} cli_shm_t;
static const char *shm_name = "_odp_cli";