diff options
author | Matias Elo <matias.elo@nokia.com> | 2021-10-13 15:57:05 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-10-21 10:53:20 +0300 |
commit | d3b7ce4b060ff50e4a9ae285fe5e2bc62e940297 (patch) | |
tree | 699b841be32730b6f714cbf9ba1e714482522c9f /helper/cli.c | |
parent | a0237360e745c02131b8e7e4316ae7e6caa22274 (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.c | 2 |
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"; |