> -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, June 23, 2016 3:59 PM > To: De Lara Guarch, Pablo > Cc: dev at dpdk.org; Zhang, Helin > Subject: Re: [dpdk-dev] [PATCH] kni: fix compilation with gcc 6.1 > > 2016-06-23 15:38, Pablo de Lara: > > Using gcc 6.1, in some cases, kni fails to compile > > because of unused variables: > > 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. > > > lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c | 4 ---- > > 1 file changed, 4 deletions(-) > > We all know that the most efficient patch would be to drop the directory > lib/librte_eal/linuxapp/kni/ethtool/ ;)