From: Bruce Richardson Date: Mon, 7 Jul 2014 23:36:55 +0000 (+0100) Subject: vmxnet3/base: disable some clang warnings X-Git-Tag: spdx-start~10528 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bc9b2c694ff2de6e6d850344c79a0f0dadbf20db;p=dpdk.git vmxnet3/base: disable some clang warnings Signed-off-by: Bruce Richardson Tested-by: Zhaochen Zhan --- 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