[v3,3/6] fib: replace zero length array with flex array
Checks
Commit Message
Zero length arrays are GNU extension. Replace with
standard flex array.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
---
lib/fib/dir24_8.h | 2 +-
lib/fib/trie.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
@@ -32,7 +32,7 @@ struct dir24_8_tbl {
uint64_t *tbl8; /**< tbl8 table. */
uint64_t *tbl8_idxes; /**< bitmap containing free tbl8 idxes*/
/* tbl24 table. */
- __extension__ uint64_t tbl24[0] __rte_cache_aligned;
+ uint64_t tbl24[] __rte_cache_aligned;
};
static inline void *
@@ -36,7 +36,7 @@ struct rte_trie_tbl {
uint32_t *tbl8_pool; /**< bitmap containing free tbl8 idxes*/
uint32_t tbl8_pool_pos;
/* tbl24 table. */
- __extension__ uint64_t tbl24[0] __rte_cache_aligned;
+ uint64_t tbl24[] __rte_cache_aligned;
};
static inline uint32_t