aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/clang_flags.go
diff options
context:
space:
mode:
authorJian Cai <jiancai@google.com>2021-07-29 11:19:33 -0700
committerJian Cai <jiancai@google.com>2021-08-25 20:10:35 +0000
commit7d81944cccf39425fb02325706c5b33b950790c4 (patch)
treed7a42d4dba28c4f3510fa566f9b9503816ede56e /compiler_wrapper/clang_flags.go
parent751072756ae84a130ee63208a8c34c4521b57599 (diff)
downloadtoolchain-utils-7d81944cccf39425fb02325706c5b33b950790c4.tar.gz
compiler_wrapper: support -W[no-]unused-set-variable
BUG=b:194845241 TEST=emerge-atlas harfbuzz Change-Id: I262883ee20ed0fc69fcc3bf119d3068f4cf7729b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3061363 Tested-by: Jian Cai <jiancai@google.com> Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/clang_flags.go')
-rw-r--r--compiler_wrapper/clang_flags.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler_wrapper/clang_flags.go b/compiler_wrapper/clang_flags.go
index c69d1b3d..84149bf6 100644
--- a/compiler_wrapper/clang_flags.go
+++ b/compiler_wrapper/clang_flags.go
@@ -63,11 +63,8 @@ func processClangFlags(builder *commandBuilder) error {
// Clang may use different options for the same or similar functionality.
gccToClang := map[string]string{
- "-Wno-error=cpp": "-Wno-#warnings",
- "-Wno-error=maybe-uninitialized": "-Wno-error=uninitialized",
- "-Wno-error=unused-but-set-variable": "-Wno-error=unused-variable",
- "-Wno-unused-but-set-variable": "-Wno-unused-variable",
- "-Wunused-but-set-variable": "-Wunused-variable",
+ "-Wno-error=cpp": "-Wno-#warnings",
+ "-Wno-error=maybe-uninitialized": "-Wno-error=uninitialized",
}
// Note: not using builder.transformArgs as we need to add multiple arguments