From: Bruce Richardson Date: Mon, 7 Jul 2014 23:36:55 +0000 (+0100) Subject: ixgbe/base: disable some clang warnings X-Git-Tag: spdx-start~10530 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fbfde92fb17301b7388517751b612452a15a2414;p=dpdk.git ixgbe/base: disable some clang warnings Signed-off-by: Bruce Richardson Tested-by: Zhaochen Zhan --- diff --git a/lib/librte_pmd_ixgbe/Makefile b/lib/librte_pmd_ixgbe/Makefile index df4771516a..00ccedbb4a 100644 --- a/lib/librte_pmd_ixgbe/Makefile +++ b/lib/librte_pmd_ixgbe/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