path: root/lib/librte_ip_frag
diff options
authorAdrien Mazarguil <>2016-09-08 14:25:04 +0200
committerThomas Monjalon <>2016-09-13 15:35:28 +0200
commit347a1e037fd323e6c2af55d17f7f0dc4bfe1d479 (patch)
tree9f23e123e0798bd8d6cdaa4b7e090cfcdc27faa2 /lib/librte_ip_frag
parent517b89b090547478e8e9885f55170b7ef14baab9 (diff)
lib: use C99 syntax for zero-size arrays
Exported header files used by applications should allow the strictest compiler flags. Language extensions used in many places must be explicitly marked or removed to avoid warnings and compilation failures. The extension keyword is used whenever the C99 syntax cannot do it. This commit prevents the following errors: error: ISO C forbids zero-size array `[...]' Signed-off-by: Adrien Mazarguil <>
Diffstat (limited to 'lib/librte_ip_frag')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h
index 9ac7081..69596ab 100644
--- a/lib/librte_ip_frag/rte_ip_frag.h
+++ b/lib/librte_ip_frag/rte_ip_frag.h
@@ -124,7 +124,7 @@ struct rte_ip_frag_tbl {
struct ip_frag_pkt *last; /**< last used entry. */
struct ip_pkt_list lru; /**< LRU list for table entries. */
struct ip_frag_tbl_stat stat; /**< statistics counters. */
- struct ip_frag_pkt pkt[0]; /**< hash table. */
+ struct ip_frag_pkt pkt[]; /**< hash table. */
/** IPv6 fragment extension header */