[dpdk-dev] [PATCH] kni: fix compilation with gcc 6.1

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Jun 27 12:18:31 CEST 2016


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:
> > 
> > build/lib/librte_eal/linuxapp/kni/ixgbe_main.c:82:19:
> > error: ‘ixgbe_copyright’
> > defined but not used [-Werror=unused-const-variable=]
> > static const char ixgbe_copyright[] =
> >                    ^~~~~~~~~~~~~~~
> > 
> > build/lib/librte_eal/linuxapp/kni/ixgbe_main.c:62:19:
> > error: ‘ixgbe_driver_string’
> > defined but not used [-Werror=unused-const-variable=]
> > static const char ixgbe_driver_string[] =
> > 
> > Fixes: 3fc5ca2f6352 ("kni: initial import")
> > 
> > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
> 
> Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied, thanks


More information about the dev mailing list