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 D077AC324 for ; Mon, 18 May 2015 17:11:41 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 18 May 2015 08:11:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,453,1427785200"; d="scan'208";a="727806462" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.63]) by fmsmga002.fm.intel.com with SMTP; 18 May 2015 08:11:38 -0700 Received: by (sSMTP sendmail emulation); Mon, 18 May 2015 16:11:38 +0025 Date: Mon, 18 May 2015 16:11:38 +0100 From: Bruce Richardson To: Helin Zhang Message-ID: <20150518151137.GB12164@bricha3-MOBL3> References: <1431957127-21395-1-git-send-email-helin.zhang@intel.com> <1431961409-22252-1-git-send-email-helin.zhang@intel.com> <1431961409-22252-3-git-send-email-helin.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431961409-22252-3-git-send-email-helin.zhang@intel.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [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:11:42 -0000 On Mon, May 18, 2015 at 11:03:29PM +0800, Helin Zhang wrote: > 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 Acked-by: Bruce Richardson > --- > 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 >