i40e/base: fix build with clang
authorHelin Zhang <helin.zhang@intel.com>
Mon, 18 May 2015 15:40:56 +0000 (23:40 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 19 May 2015 10:14:46 +0000 (12:14 +0200)
commitff5c3960017cf4625581e2a03cead35cbd3e6744
treeb586e3d372f6391b55e0c5e96db1d525fad05079
parent01eca0fae979927533fd62ab274ef665b574110e
i40e/base: fix build with clang

When compiling with clang, it detects that a variable used for debug
is unused (debug_mask is never set):
    lib/librte_pmd_i40e/i40e/i40e_nvm.c:708:20: error: unused variable
          'i40e_nvm_update_state_str' [-Werror,-Wunused-variable]
    STATIC const char *i40e_nvm_update_state_str[] = {
                       ^
As we are not supposed to modify the base driver (except for update
synchronization from Intel), it was ignored with GCC thanks to the
option -Wno-unused-variable but clang was forgotten.

Fixes: 6b5aaf47d571 ("i40e/base: replace NVM debug logs")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tetsuya Mukawa <mukawa@igel.co.jp>
lib/librte_pmd_i40e/Makefile