From 2b650c8daf58185d2eed1d7dfe805bb1163672d2 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 24 Feb 2026 19:07:52 +0100 Subject: [PATCH] build: Set -Qunused-arguments depending on compiler not os This got introduced in configure.ac in 4ca6296fb7fe57d24b809939473360d1a52b3d13. I'll leave it there as is for now but let's use the proper way in meson. See discussion in https://github.com/profanity-im/profanity/pull/2090 --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 006cd8ce..ccec068d 100644 --- a/meson.build +++ b/meson.build @@ -68,9 +68,11 @@ if is_debug ], language: 'c') endif -if platform == 'osx' +if cc.get_id() == 'clang' add_project_arguments('-Qunused-arguments', language: 'c') - +endif + +if platform == 'osx' # Check for homebrew paths on Apple Silicon if run_command('test', '-d', '/opt/homebrew/include', check: false).returncode() == 0 add_project_arguments('-I/opt/homebrew/include', language: 'c')