From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4C1442B89 for ; Thu, 24 Mar 2016 18:34:56 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 24 Mar 2016 10:34:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,386,1455004800"; d="scan'208";a="931067074" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 24 Mar 2016 10:34:53 -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 u2OHYrM3011651; Thu, 24 Mar 2016 17:34:53 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u2OHYrda030271; Thu, 24 Mar 2016 17:34:53 GMT Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u2OHYqnN030267; Thu, 24 Mar 2016 17:34:52 GMT From: Ferruh Yigit To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev , Ferruh Yigit Date: Thu, 24 Mar 2016 17:34:51 +0000 Message-Id: <1458840891-30237-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <56F30A0C.5010207@intel.com> References: <56F30A0C.5010207@intel.com> Subject: [dpdk-dev] [PATCH v2] ixgbe: disable icc compile warning 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: Thu, 24 Mar 2016 17:34:56 -0000 icc (icc (ICC) 16.0.1 20151021) is generating following compile error: " CC ixgbe_rxtx.o .../drivers/net/ixgbe/ixgbe_rxtx.c(153): error #3656: variable "free" may be used before its value is set (nb_free > 0 && m->pool != free[0]->pool)) { ^ " Indeed this is a false positive and code is correct. "nb_free" check prevents the free[] access before its value set. Disabling this icc warning (#3656) for file ixgbe_rxtx.c. Signed-off-by: Ferruh Yigit --- drivers/net/ixgbe/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile index c032775..50bf51c 100644 --- a/drivers/net/ixgbe/Makefile +++ b/drivers/net/ixgbe/Makefile @@ -49,6 +49,8 @@ ifeq ($(CC), icc) # CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259 +CFLAGS_ixgbe_rxtx.o += -wd3656 + else ifeq ($(CC), clang) # # CFLAGS for clang -- 2.5.0