From a1ebc2d07224eec845e6141608f3a3e0a187251b Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Mon, 13 Sep 2021 06:25:35 +0000 Subject: [PATCH] Remove unused-but-set-{variable,parameter} from ClangUnknownCflags These warnings are now implemented by Clang. Change-Id: I78d04216da0ca3d1db616c7b658ca6075b20e7f6 Test: presubmit Bug: 197230471 --- cc/config/clang.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cc/config/clang.go b/cc/config/clang.go index 53a73066e..3caa68898 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -31,23 +31,15 @@ var ClangUnknownCflags = sorted([]string{ "-fno-tree-sra", "-fprefetch-loop-arrays", "-funswitch-loops", - "-Werror=unused-but-set-parameter", - "-Werror=unused-but-set-variable", "-Wmaybe-uninitialized", "-Wno-error=clobbered", "-Wno-error=maybe-uninitialized", - "-Wno-error=unused-but-set-parameter", - "-Wno-error=unused-but-set-variable", "-Wno-extended-offsetof", "-Wno-free-nonheap-object", "-Wno-literal-suffix", "-Wno-maybe-uninitialized", "-Wno-old-style-declaration", - "-Wno-unused-but-set-parameter", - "-Wno-unused-but-set-variable", "-Wno-unused-local-typedefs", - "-Wunused-but-set-parameter", - "-Wunused-but-set-variable", "-fdiagnostics-color", // http://b/153759688 "-fuse-init-array",