From: Khem Raj Date: Wed, 21 May 2025 06:19:43 +0000 (-0700) Subject: pulseaudio: Treat -Wunused-command-line-argument as error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=976b01c798ad2825bb36e5e91d1d5066701cc586;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git pulseaudio: Treat -Wunused-command-line-argument as error This ensures that it does not enble SSE when -msse flag is passed, clang warns about unused option on non-x86 targets but it must be flagged as error for configure to notice and fail the check to enable SSE on non-x86 machines Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc index 18c12ede63..3c65aaee6e 100644 --- a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc +++ b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc @@ -71,6 +71,9 @@ inherit bash-completion meson pkgconfig useradd gettext perlnative systemd manpa # if using --disable-nls USE_NLS = "yes" +# Helps tests for -msse fail on non-SSE architectures which is all non-x86 +TUNE_CCARGS:append:toolchain-clang = " -Werror=unused-command-line-argument" + EXTRA_OEMESON = "\ -Dhal-compat=false \ -Dorc=disabled \