982e43658c
To improve code quality we want to turn on as many warnings as we can in the DPDK code, so turn on the "unused-parameter" warning in meson builds to match that of the make builds. To ensure correct compilation, disable the warning selectively for driver base code that otherwise would have issues. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
33 lines
611 B
Meson
33 lines
611 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2018 Intel Corporation
|
|
|
|
sources = [
|
|
'ice_controlq.c',
|
|
'ice_common.c',
|
|
'ice_sched.c',
|
|
'ice_switch.c',
|
|
'ice_nvm.c',
|
|
'ice_flex_pipe.c',
|
|
'ice_flow.c',
|
|
'ice_dcb.c',
|
|
'ice_fdir.c',
|
|
]
|
|
|
|
error_cflags = ['-Wno-unused-value',
|
|
'-Wno-unused-but-set-variable',
|
|
'-Wno-unused-variable',
|
|
'-Wno-unused-parameter',
|
|
]
|
|
c_args = cflags
|
|
|
|
foreach flag: error_cflags
|
|
if cc.has_argument(flag)
|
|
c_args += flag
|
|
endif
|
|
endforeach
|
|
|
|
base_lib = static_library('ice_base', sources,
|
|
dependencies: static_rte_eal,
|
|
c_args: c_args)
|
|
base_objs = base_lib.extract_all_objects()
|