From b6b81190717f9381eb87188351a6ea90e38b7588 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 10 May 2023 23:29:02 -0700 Subject: btrfs-tools: Error out on x86 options on non-x86 arches e.g. -msha will otherwise be deemed available when using clang which is not correct, therefore treat unused-command-line-argument as error which will be flagged on non-x86 arches Signed-off-by: Khem Raj --- conf/nonclangable.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 5f3d7f9..2c83f1a 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -261,6 +261,8 @@ TUNE_CCARGS:remove:pn-nfs-utils:toolchain-clang = "-Qunused-arguments" TUNE_CCARGS:remove:pn-pipewire:toolchain-clang = "-Qunused-arguments" TUNE_CCARGS:remove:pn-tesseract:toolchain-clang = "-Qunused-arguments" TUNE_CCARGS:remove:pn-pulseaudio:toolchain-clang = "-Qunused-arguments" +TUNE_CCARGS:remove:pn-btrfs-tools:toolchain-clang = "-Qunused-arguments" +TUNE_CCARGS:append:pn-btrfs-tools:toolchain-clang = " -Werror=unused-command-line-argument" # Disable altivec on ppc32 #/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h:1345:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrt'? -- cgit v1.2.3-54-g00ecf