From: Bruce Richardson Date: Mon, 7 Jul 2014 23:36:55 +0000 (+0100) Subject: i40e/base: disable some clang warnings X-Git-Tag: spdx-start~10529 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=30fe25ea30cbb69d3adc7642209d5fb2d5fd4157;p=dpdk.git i40e/base: disable some clang warnings Signed-off-by: Bruce Richardson Tested-by: Zhaochen Zhan --- diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 14bce71458..4b31675ec7 100644 --- a/lib/librte_pmd_i40e/Makefile +++ b/lib/librte_pmd_i40e/Makefile @@ -45,6 +45,15 @@ CFLAGS += $(WERROR_FLAGS) # ifeq ($(CC), icc) CFLAGS_BASE_DRIVER = -wd593 +else ifeq ($(CC), clang) +CFLAGS_BASE_DRIVER += -Wno-sign-compare +CFLAGS_BASE_DRIVER += -Wno-unused-value +CFLAGS_BASE_DRIVER += -Wno-unused-parameter +CFLAGS_BASE_DRIVER += -Wno-strict-aliasing +CFLAGS_BASE_DRIVER += -Wno-format +CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers +CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast +CFLAGS_BASE_DRIVER += -Wno-format-nonliteral else CFLAGS_BASE_DRIVER = -Wno-unused-but-set-variable CFLAGS_BASE_DRIVER += -Wno-sign-compare