build: warn on unused parameter
[dpdk.git] / drivers / net / ice / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
3
4 sources = [
5         'ice_controlq.c',
6         'ice_common.c',
7         'ice_sched.c',
8         'ice_switch.c',
9         'ice_nvm.c',
10         'ice_flex_pipe.c',
11         'ice_flow.c',
12         'ice_dcb.c',
13         'ice_fdir.c',
14 ]
15
16 error_cflags = ['-Wno-unused-value',
17                 '-Wno-unused-but-set-variable',
18                 '-Wno-unused-variable',
19                 '-Wno-unused-parameter',
20 ]
21 c_args = cflags
22
23 foreach flag: error_cflags
24         if cc.has_argument(flag)
25                 c_args += flag
26         endif
27 endforeach
28
29 base_lib = static_library('ice_base', sources,
30         dependencies: static_rte_eal,
31         c_args: c_args)
32 base_objs = base_lib.extract_all_objects()