From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 941E29A9E for ; Mon, 18 May 2015 17:03:54 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 18 May 2015 08:03:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,453,1427785200"; d="scan'208";a="573119514" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga003.jf.intel.com with ESMTP; 18 May 2015 08:03:44 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t4IF3cGR007793; Mon, 18 May 2015 23:03:38 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t4IF3YZE022300; Mon, 18 May 2015 23:03:37 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t4IF3Yua022296; Mon, 18 May 2015 23:03:34 +0800 From: Helin Zhang To: dev@dpdk.org Date: Mon, 18 May 2015 23:03:29 +0800 Message-Id: <1431961409-22252-3-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1431961409-22252-1-git-send-email-helin.zhang@intel.com> References: <1431957127-21395-1-git-send-email-helin.zhang@intel.com> <1431961409-22252-1-git-send-email-helin.zhang@intel.com> Subject: [dpdk-dev] [PATCH v2 2/2] i40e/base: compile fix on clang 3.3 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: Mon, 18 May 2015 15:03:55 -0000 Below compile error can be found on clang 3.3, which is a warning treated as error. Forcedly disabling the warning can fix it. Error log: lib/librte_pmd_i40e/i40e/i40e_nvm.c:708:20: error: unused variable 'i40e_nvm_update_state_str' [-Werror,-Wunused-variable] STATIC const char *i40e_nvm_update_state_str[] = { ^ Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 911e4f5..4a5635b 100644 --- a/lib/librte_pmd_i40e/Makefile +++ b/lib/librte_pmd_i40e/Makefile @@ -58,6 +58,7 @@ 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 +CFLAGS_BASE_DRIVER += -Wno-unused-variable else CFLAGS_BASE_DRIVER = -Wno-sign-compare CFLAGS_BASE_DRIVER += -Wno-unused-value -- 1.8.1.4