diff options
author | Yi Kong <yikong@google.com> | 2018-12-11 18:34:49 -0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-12-13 18:36:19 -0800 |
commit | c9f6db50d3f40a49536ea0dadef4a00d1f2b0eed (patch) | |
tree | 3b844567a95baa6f6f263a8709c1e6697df93872 /cc | |
parent | fee2bff77ce6d5c6a9c4f3971c385432dd7d8859 (diff) | |
download | build_soong-c9f6db50d3f40a49536ea0dadef4a00d1f2b0eed.tar.gz build_soong-c9f6db50d3f40a49536ea0dadef4a00d1f2b0eed.tar.bz2 build_soong-c9f6db50d3f40a49536ea0dadef4a00d1f2b0eed.zip |
Move -Wno-null-pointer-arithmetic to external only
Test: m checkbuild
Bug: 72331524
Change-Id: I9c49a8cef547f6c840001fd203a0abecaeef44d5
Merged-In: I9c49a8cef547f6c840001fd203a0abecaeef44d5
(cherry picked from commit 3e88cb03993ac8f1d97951f3ae5cdecb70d91371)
Diffstat (limited to 'cc')
-rw-r--r-- | cc/config/clang.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/config/clang.go b/cc/config/clang.go index c070bf2b..a0ebd106 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -167,10 +167,6 @@ func init() { "-Wno-tautological-unsigned-enum-zero-compare", "-Wno-tautological-unsigned-zero-compare", - // http://b/72331524 Allow null pointer arithmetic until the instances detected by - // this new warning are fixed. - "-Wno-null-pointer-arithmetic", - // http://b/72330874 Disable -Wenum-compare until the instances detected by this new // warning are fixed. "-Wno-enum-compare", @@ -187,6 +183,10 @@ func init() { // Extra cflags for projects under external/ directory pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{ // TODO(yikong): Move -Wno flags here + + // http://b/72331524 Allow null pointer arithmetic until the instances detected by + // this new warning are fixed. + "-Wno-null-pointer-arithmetic", }, " ")) } |