From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: [PATCH] qede: fix icc build error Date: Tue, 10 May 2016 12:23:27 +0100 Message-ID: <1462879407-27649-1-git-send-email-ferruh.yigit@intel.com> Cc: Harish Patil , Rasesh Mody , Sony Chacko , Ferruh Yigit To: dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id AB4F69ACA for ; Tue, 10 May 2016 13:23:32 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" fix errors: icc: command line warning #10006: ignoring unknown option '-Wno-unused-value' icc: command line warning #10006: ignoring unknown option '-Wno-format-nonliteral' icc: command line warning #10006: ignoring unknown option '-Wno-shift-negative-value' qede/base/ecore_dev.c(1643): error #188: enumerated type mixed with another type return 0; ^ Signed-off-by: Ferruh Yigit --- drivers/net/qede/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/qede/Makefile b/drivers/net/qede/Makefile index 47e01be..d0c1361 100644 --- a/drivers/net/qede/Makefile +++ b/drivers/net/qede/Makefile @@ -27,7 +27,6 @@ OS_TYPE := $(shell uname -s) # CFLAGS # CFLAGS_BASE_DRIVER = -Wno-unused-parameter -CFLAGS_BASE_DRIVER += -Wno-unused-value CFLAGS_BASE_DRIVER += -Wno-sign-compare CFLAGS_BASE_DRIVER += -Wno-missing-prototypes CFLAGS_BASE_DRIVER += -Wno-cast-qual @@ -35,12 +34,16 @@ CFLAGS_BASE_DRIVER += -Wno-unused-function CFLAGS_BASE_DRIVER += -Wno-unused-variable CFLAGS_BASE_DRIVER += -Wno-strict-aliasing CFLAGS_BASE_DRIVER += -Wno-missing-prototypes + +ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +CFLAGS_BASE_DRIVER += -Wno-unused-value CFLAGS_BASE_DRIVER += -Wno-format-nonliteral ifeq ($(OS_TYPE),Linux) ifeq ($(shell clang -Wno-shift-negative-value -Werror -E - < /dev/null > /dev/null 2>&1; echo $$?),0) CFLAGS_BASE_DRIVER += -Wno-shift-negative-value endif endif +endif ifneq (,$(filter gcc gcc48,$(CC))) CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable @@ -57,7 +60,7 @@ ifeq ($(shell clang -Wno-pointer-bool-conversion -Werror -E - < /dev/null > /dev CFLAGS_BASE_DRIVER += -Wno-pointer-bool-conversion endif else -#icc flags +CFLAGS_BASE_DRIVER += -wd188 #188: enumerated type mixed with another type endif # -- 2.5.5