lib: work around nonstandard bit-fields
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 8 Sep 2016 12:25:05 +0000 (14:25 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 Sep 2016 13:35:28 +0000 (15:35 +0200)
commit8d4b8c87f2e8377bf1124feee193bc26a8d7ca8a
treea7bfa74ae22227014cfc061f7f3d90a0648eb934
parent347a1e037fd323e6c2af55d17f7f0dc4bfe1d479
lib: work around nonstandard bit-fields

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.

This commit prevents the following errors:

 error: type of bit-field `[...]' is a GCC extension

Note: the standard does not require implementations to issue a diagnostic
message with these, and such errors do not occur with recent GCC or clang
versions. However, GCC 4.7 is still common and using the extension keyword
is easier than checking compiler version.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
lib/librte_cryptodev/rte_cryptodev.h
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
lib/librte_ether/rte_ethdev.h
lib/librte_kni/rte_kni.h
lib/librte_lpm/rte_lpm.h
lib/librte_mbuf/rte_mbuf.h