From 86892988164c280ed007044ee25b222db6e02ca8 Mon Sep 17 00:00:00 2001 From: Samuel Hym Date: Tue, 16 Apr 2024 19:42:34 +0200 Subject: [PATCH] Disable a Clang warning Disable Clang's unused-command-line-argument warning that triggers often as our toolchain is not smart enough to generate only useful arguments for each call --- gen_toolchain_tool.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gen_toolchain_tool.sh b/gen_toolchain_tool.sh index 562e5253..a40cfa49 100755 --- a/gen_toolchain_tool.sh +++ b/gen_toolchain_tool.sh @@ -27,6 +27,13 @@ gen_cc() { ;; esac + # Add the -Wno-unused-command-line-argument option for clang, as we always + # give it compiling options, even if it will be only linking + # Reuse the test from Solo5 to detect clang + if $SOLO5_TOOLCHAIN-cc -dM -E -