From bc9b2c694ff2de6e6d850344c79a0f0dadbf20db Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Tue, 8 Jul 2014 00:36:55 +0100 Subject: [PATCH] vmxnet3/base: disable some clang warnings Signed-off-by: Bruce Richardson Tested-by: Zhaochen Zhan --- lib/librte_pmd_vmxnet3/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_pmd_vmxnet3/Makefile b/lib/librte_pmd_vmxnet3/Makefile index a44abe149c..6872c747fa 100644 --- a/lib/librte_pmd_vmxnet3/Makefile +++ b/lib/librte_pmd_vmxnet3/Makefile @@ -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 -- 2.20.1