From 8ecb22d40278752a8cdbd85cc9b35290ba80baa8 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Tue, 17 May 2022 19:20:17 +0800 Subject: [PATCH] Enable string-compare warning Test: presubmit Bug: 153764102 Change-Id: I6fbf7a841cb6ea7bc8433fd2fddd5a825f68aa22 --- cc/config/global.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cc/config/global.go b/cc/config/global.go index 1c4ad7f6a..178e80bab 100644 --- a/cc/config/global.go +++ b/cc/config/global.go @@ -191,7 +191,6 @@ var ( "-Werror=int-in-bool-context", "-Werror=int-to-pointer-cast", "-Werror=pointer-to-int-cast", - "-Werror=string-compare", "-Werror=xor-used-as-pow", // http://b/161386391 for -Wno-void-pointer-to-enum-cast "-Wno-void-pointer-to-enum-cast", @@ -225,7 +224,6 @@ var ( "-Wno-misleading-indentation", // http://b/153746954 "-Wno-zero-as-null-pointer-constant", // http://b/68236239 "-Wno-deprecated-anon-enum-enum-conversion", // http://b/153746485 - "-Wno-string-compare", // http://b/153764102 "-Wno-pessimizing-move", // http://b/154270751 // New warnings to be fixed after clang-r399163 "-Wno-non-c-typedef-for-linkage", // http://b/161304145