summaryrefslogtreecommitdiff
path: root/lib/librte_kni/rte_kni.h
diff options
context:
space:
mode:
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>2016-09-08 14:25:05 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-09-13 15:35:28 +0200
commit8d4b8c87f2e8377bf1124feee193bc26a8d7ca8a (patch)
treea7bfa74ae22227014cfc061f7f3d90a0648eb934 /lib/librte_kni/rte_kni.h
parent347a1e037fd323e6c2af55d17f7f0dc4bfe1d479 (diff)
downloaddpdk-8d4b8c87f2e8377bf1124feee193bc26a8d7ca8a.zip
dpdk-8d4b8c87f2e8377bf1124feee193bc26a8d7ca8a.tar.gz
dpdk-8d4b8c87f2e8377bf1124feee193bc26a8d7ca8a.tar.xz
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>
Diffstat (limited to 'lib/librte_kni/rte_kni.h')
-rw-r--r--lib/librte_kni/rte_kni.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h
index 7363e6c..5f6f9e4 100644
--- a/lib/librte_kni/rte_kni.h
+++ b/lib/librte_kni/rte_kni.h
@@ -88,6 +88,7 @@ struct rte_kni_conf {
struct rte_pci_addr addr;
struct rte_pci_id id;
+ __extension__
uint8_t force_bind : 1; /* Flag to bind kernel thread */
};