From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BE50CC464 for ; Thu, 23 Jun 2016 18:45:23 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 23 Jun 2016 09:45:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,517,1459839600"; d="scan'208";a="981989065" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga001.jf.intel.com with ESMTP; 23 Jun 2016 09:45:21 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.183]) by IRSMSX107.ger.corp.intel.com ([169.254.10.96]) with mapi id 14.03.0248.002; Thu, 23 Jun 2016 17:45:21 +0100 From: "De Lara Guarch, Pablo" To: Thomas Monjalon CC: "dev@dpdk.org" , "Zhang, Helin" Thread-Topic: [dpdk-dev] [PATCH] kni: fix compilation with gcc 6.1 Thread-Index: AQHRzV0vFmwxhPSCykyC9L8w0HLsUZ/3FBAAgAAt2dA= Date: Thu, 23 Jun 2016 16:45:20 +0000 Message-ID: References: <1466692704-2811-1-git-send-email-pablo.de.lara.guarch@intel.com> <13456618.zD3umMGWtb@xps13> In-Reply-To: <13456618.zD3umMGWtb@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTUwYjhkZWUtZmFmZC00ZjM3LWEyYTktMDhhODFlZGU1MWVhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IldldDI4MmkydWdJSnoxTkcreENLMkVDNXZFajRQQU5NOTdzc3BEbUROQ3M9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] kni: fix compilation with gcc 6.1 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, 23 Jun 2016 16:45:24 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Thursday, June 23, 2016 3:59 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; Zhang, Helin > Subject: Re: [dpdk-dev] [PATCH] kni: fix compilation with gcc 6.1 >=20 > 2016-06-23 15:38, Pablo de Lara: > > Using gcc 6.1, in some cases, kni fails to compile > > because of unused variables: >=20 > Curiosity: is it only with gcc 6.1? Have you tested other versions? I have tested it with other gcc versions, but have not seen it there. I said some cases because depending on the kernel, the flags passed to gcc = change, and if -Wno-unused-const-variable is not passed, then this error shows up. >=20 > > lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c | 4 ---- > > 1 file changed, 4 deletions(-) >=20 > We all know that the most efficient patch would be to drop the directory > lib/librte_eal/linuxapp/kni/ethtool/ ;)