From fae5dac8fdb752db0fd6b20e7dc996cd3079f7c6 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Mon, 17 Dec 2018 17:18:37 -0800 Subject: [PATCH] Move -Wno-null-dereference to external only Test: m checkbuild Bug: 29823425 Change-Id: Icd675e451b2a2a8e3f489706e533f92d991de9c0 --- cc/config/clang.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cc/config/clang.go b/cc/config/clang.go index a0ebd1066..832689b54 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -135,10 +135,6 @@ func init() { // codebase for it. "-Wno-inconsistent-missing-override", - // Bug: http://b/29823425 Disable -Wnull-dereference until the - // new instances detected by this warning are fixed. - "-Wno-null-dereference", - // Enable clang's thread-safety annotations in libcxx. // Turn off -Wthread-safety-negative, to avoid breaking projects that use -Weverything. "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS", @@ -187,6 +183,10 @@ func init() { // http://b/72331524 Allow null pointer arithmetic until the instances detected by // this new warning are fixed. "-Wno-null-pointer-arithmetic", + + // Bug: http://b/29823425 Disable -Wnull-dereference until the + // new instances detected by this warning are fixed. + "-Wno-null-dereference", }, " ")) }