Add a single-line fix to the base code, and then the remaining two compiler warning disable flags can be removed from the driver base code build file.
Fixes: 8db9e2a1b232 ("i40e: base driver") Cc: sta...@dpdk.org Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> --- drivers/net/intel/i40e/base/i40e_diag.c | 2 +- drivers/net/intel/i40e/base/meson.build | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/net/intel/i40e/base/i40e_diag.c b/drivers/net/intel/i40e/base/i40e_diag.c index 4ca102cdd5..71b2e53e85 100644 --- a/drivers/net/intel/i40e/base/i40e_diag.c +++ b/drivers/net/intel/i40e/base/i40e_diag.c @@ -34,7 +34,7 @@ static enum i40e_status_code i40e_diag_reg_pattern_test(struct i40e_hw *hw, { const u32 patterns[] = {0x5A5A5A5A, 0xA5A5A5A5, 0x00000000, 0xFFFFFFFF}; u32 pat, val, orig_val; - int i; + unsigned int i; orig_val = rd32(hw, reg); for (i = 0; i < ARRAY_SIZE(patterns); i++) { diff --git a/drivers/net/intel/i40e/base/meson.build b/drivers/net/intel/i40e/base/meson.build index 2648e5d0c4..766383101b 100644 --- a/drivers/net/intel/i40e/base/meson.build +++ b/drivers/net/intel/i40e/base/meson.build @@ -11,18 +11,7 @@ sources = [ 'i40e_nvm.c', ] -error_cflags = [ - '-Wno-sign-compare', - '-Wno-strict-aliasing', -] -c_args = cflags -foreach flag: error_cflags - if cc.has_argument(flag) - c_args += flag - endif -endforeach - base_lib = static_library('i40e_base', sources, dependencies: static_rte_eal, - c_args: c_args) + c_args: cflags) base_objs = base_lib.extract_all_objects(recursive: true) -- 2.45.2