numam-dpdk/drivers/net/ixgbe/base/meson.build
Bruce Richardson 982e43658c build: warn on unused parameter
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>
2019-06-04 00:22:50 +02:00

38 lines
741 B
Meson

# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
sources = [
'ixgbe_82598.c',
'ixgbe_82599.c',
'ixgbe_api.c',
'ixgbe_common.c',
'ixgbe_dcb_82598.c',
'ixgbe_dcb_82599.c',
'ixgbe_dcb.c',
'ixgbe_hv_vf.c',
'ixgbe_mbx.c',
'ixgbe_phy.c',
'ixgbe_vf.c',
'ixgbe_x540.c',
'ixgbe_x550.c'
]
error_cflags = ['-Wno-unused-value',
'-Wno-unused-but-set-variable',
'-Wno-unused-parameter',
]
c_args = cflags
if allow_experimental_apis
c_args += '-DALLOW_EXPERIMENTAL_API'
endif
foreach flag: error_cflags
if cc.has_argument(flag)
c_args += flag
endif
endforeach
base_lib = static_library('ixgbe_base', sources,
dependencies: static_rte_eal,
c_args: c_args)
base_objs = base_lib.extract_all_objects()