From a5d5091f0ee3ae3302a1d5704d3cf54a6ef27395 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 6 Mar 2022 13:28:49 +0000 Subject: [PATCH] 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 --- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index e5cf3959..8ce0fceb 100644 --- a/meson.build +++ b/meson.build @@ -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