From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] kni: fix compilation with gcc 6.1 Date: Mon, 27 Jun 2016 12:18:31 +0200 Message-ID: <1896089.0ArySN1CbE@xps13> References: <1466692704-2811-1-git-send-email-pablo.de.lara.guarch@intel.com> <576CEF12.4040203@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, Ferruh Yigit , helin.zhang@intel.com To: Pablo de Lara Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 1BA2D5320 for ; Mon, 27 Jun 2016 12:18:33 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id f126so93884276wma.1 for ; Mon, 27 Jun 2016 03:18:33 -0700 (PDT) In-Reply-To: <576CEF12.4040203@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-06-24 09:28, Ferruh Yigit: > On 6/23/2016 3:38 PM, Pablo de Lara wrote: > > Using gcc 6.1, in some cases, kni fails to compile > > because of unused variables: > >=20 > > build/lib/librte_eal/linuxapp/kni/ixgbe_main.c:82:19: > > error: =E2=80=98ixgbe_copyright=E2=80=99 > > defined but not used [-Werror=3Dunused-const-variable=3D] > > static const char ixgbe_copyright[] =3D > > ^~~~~~~~~~~~~~~ > >=20 > > build/lib/librte_eal/linuxapp/kni/ixgbe_main.c:62:19: > > error: =E2=80=98ixgbe_driver_string=E2=80=99 > > defined but not used [-Werror=3Dunused-const-variable=3D] > > static const char ixgbe_driver_string[] =3D > >=20 > > Fixes: 3fc5ca2f6352 ("kni: initial import") > >=20 > > Signed-off-by: Pablo de Lara >=20 > Acked-by: Ferruh Yigit Applied, thanks