From f993e7797dc5f1040e39ad9ca1bad27fa0ca66b8 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm Date: Thu, 6 Dec 2018 12:11:21 +0000 Subject: [PATCH] Revert "Remove unneeded -Wno-constant-logical-operand flag" This reverts commit 4f0ce757aa2bc039bf143087fe586d9b587c5e5c. Reason for revert: Breaks several targets in internal git_master, e.g. http://ab/5165971. Test: Build failing library Change-Id: I02a5ade05a76b24020586c55a4e8f441ca7708a9 --- cc/config/clang.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cc/config/clang.go b/cc/config/clang.go index 0b2190c47..46d852880 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -186,6 +186,9 @@ func init() { // compatibility. "-Wno-c++98-compat-extra-semi", + // Disable this warning until we can fix all instances where it fails. + "-Wno-constant-logical-operand", + // Disable this warning because we don't care about behavior with older compilers. "-Wno-return-std-move-in-c++11",