lib: work around unnamed structs/unions
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 8 Sep 2016 12:25:06 +0000 (14:25 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 Sep 2016 13:35:28 +0000 (15:35 +0200)
commit79d6f5fc5858743b654650d8b8cf4efee55d1ae8
treeaa9fab3c9335b51122dba0b245107d7d12d16c67
parent8d4b8c87f2e8377bf1124feee193bc26a8d7ca8a
lib: work around unnamed structs/unions

Exported header files used by applications should allow the strictest
compiler flags. Language extensions used in many places must be explicitly
marked to avoid warnings and compilation failures.

Unnamed structs/unions are allowed since C11, however many compiler
versions do not use this mode by default.

This commit prevents the following errors:

 error: ISO C99 doesn't support unnamed structs/unions
 error: struct has no named members

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
20 files changed:
lib/librte_cryptodev/rte_crypto.h
lib/librte_cryptodev/rte_crypto_sym.h
lib/librte_cryptodev/rte_cryptodev.h
lib/librte_cryptodev/rte_cryptodev_pmd.h
lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h
lib/librte_eal/common/include/arch/x86/rte_atomic_32.h
lib/librte_eal/common/include/arch/x86/rte_cycles.h
lib/librte_eal/common/include/rte_common.h
lib/librte_eal/common/include/rte_devargs.h
lib/librte_eal/common/include/rte_interrupts.h
lib/librte_eal/common/include/rte_memory.h
lib/librte_eal/common/include/rte_memzone.h
lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
lib/librte_hash/rte_thash.h
lib/librte_lpm/rte_lpm.h
lib/librte_mbuf/rte_mbuf.h
lib/librte_mempool/rte_mempool.h
lib/librte_pipeline/rte_pipeline.h
lib/librte_timer/rte_timer.h