vmxnet3/base: disable some clang warnings
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 7 Jul 2014 23:36:55 +0000 (00:36 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 18 Jul 2014 23:54:15 +0000 (01:54 +0200)
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com>
lib/librte_pmd_vmxnet3/Makefile

index a44abe1..6872c74 100644 (file)
@@ -44,6 +44,14 @@ ifeq ($(CC), icc)
 # CFLAGS for icc
 #
 CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259
+
+else ifeq ($(CC), clang)
+#
+# CFLAGS for clang
+#
+CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
+CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
+
 else
 #
 # CFLAGS for gcc