meson: build with -Wno-unused-parameter

Otherwise we get a ton of warnings about unused function parameters.
The existing -Qunused-arguments seems to be clang specific.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
pull/702/head
Emil Velikov 2 years ago
parent 3f2db318c5
commit a5d5091f0e

@ -123,8 +123,8 @@ c_args = []
foreach a : ['-Werror=implicit-function-declaration',
'-Werror=missing-prototypes', '-Werror=return-type',
'-Werror=incompatible-pointer-types',
'-fno-math-errno',
'-fno-trapping-math', '-Qunused-arguments']
'-Wno-unused-parameter', '-Qunused-arguments',
'-fno-math-errno', '-fno-trapping-math']
if cc.has_argument(a)
c_args += a
endif
@ -139,8 +139,8 @@ endforeach
# Check for generic C++ arguments
cpp_args = []
foreach a : ['-Werror=return-type',
'-fno-math-errno', '-fno-trapping-math',
'-Qunused-arguments']
'-Wno-unused-parameter', '-Qunused-arguments',
'-fno-math-errno', '-fno-trapping-math']
if cpp.has_argument(a)
cpp_args += a
endif

Loading…
Cancel
Save