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

Loading…
Cancel
Save