From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 10 May 2016 04:23:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,604,1455004800"; d="scan'208";a="100449233" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga004.fm.intel.com with ESMTP; 10 May 2016 04:23:30 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u4ABNTKd007632; Tue, 10 May 2016 12:23:29 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u4ABNTkv027683; Tue, 10 May 2016 12:23:29 +0100 Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u4ABNTDn027679; Tue, 10 May 2016 12:23:29 +0100 From: Ferruh Yigit To: dev@dpdk.org Cc: Harish Patil , Rasesh Mody , Sony Chacko , Ferruh Yigit Date: Tue, 10 May 2016 12:23:27 +0100 Message-Id: <1462879407-27649-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] qede: fix icc build error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 11:23:33 -0000 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