lib: use C99 syntax for zero-size arrays
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 8 Sep 2016 12:25:04 +0000 (14:25 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 Sep 2016 13:35:28 +0000 (15:35 +0200)
commit347a1e037fd323e6c2af55d17f7f0dc4bfe1d479
tree9f23e123e0798bd8d6cdaa4b7e090cfcdc27faa2
parent517b89b090547478e8e9885f55170b7ef14baab9
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 <adrien.mazarguil@6wind.com>
lib/librte_acl/rte_acl.h
lib/librte_cryptodev/rte_cryptodev.h
lib/librte_cryptodev/rte_cryptodev_pmd.h
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
lib/librte_hash/rte_fbk_hash.h
lib/librte_ip_frag/rte_ip_frag.h
lib/librte_lpm/rte_lpm.h
lib/librte_mbuf/rte_mbuf.h
lib/librte_pipeline/rte_pipeline.h
lib/librte_ring/rte_ring.h
lib/librte_sched/rte_bitmap.h