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/hashtable.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/hashtable.c')
-rw-r--r-- | helper/hashtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/hashtable.c b/helper/hashtable.c index ac11acb15..39da586a8 100644 --- a/helper/hashtable.c +++ b/helper/hashtable.c @@ -40,7 +40,7 @@ typedef struct odph_hash_node { * its structure is like: * k_byte1 k_byte2...k_byten v_byte1...v_bytem */ - char content[0]; + char content[]; } odph_hash_node; typedef struct { |