kni: fix build with gcc 6.1
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 23 Jun 2016 14:38:24 +0000 (15:38 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 10:28:10 +0000 (12:28 +0200)
commit949e26c4cfe8aff52be3790aa6bd3fda65137e72
treefecd2880d305b94b84fa82aaa54c69133ae2daa1
parentc175e542c0c3ba6f62a3ef9a932cb7ea27ee0852
kni: fix build with gcc 6.1

Using gcc 6.1, in some cases, kni fails to compile
because of unused variables:

lib/librte_eal/linuxapp/kni/ixgbe_main.c:82:19:
error: ‘ixgbe_copyright’
defined but not used [-Werror=unused-const-variable=]

lib/librte_eal/linuxapp/kni/ixgbe_main.c:62:19:
error: ‘ixgbe_driver_string’
defined but not used [-Werror=unused-const-variable=]

Fixes: 3fc5ca2f6352 ("kni: initial import")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c