Disable warnings triggered in Clang r271374
am: b6572b15c4
Change-Id: I8673c02fefafcfcc30684e5c95540dc20c8af485
This commit is contained in:
committed by
android-build-merger
commit
7556109a79
12
cc/clang.go
12
cc/clang.go
@@ -88,6 +88,9 @@ func init() {
|
|||||||
// Force clang to always output color diagnostics. Ninja will strip the ANSI
|
// Force clang to always output color diagnostics. Ninja will strip the ANSI
|
||||||
// color codes if it is not running in a terminal.
|
// color codes if it is not running in a terminal.
|
||||||
"-fcolor-diagnostics",
|
"-fcolor-diagnostics",
|
||||||
|
|
||||||
|
// http://b/29823425 Disable -Wexpansion-to-defined for Clang update to r271374
|
||||||
|
"-Wno-expansion-to-defined",
|
||||||
}, " "))
|
}, " "))
|
||||||
|
|
||||||
pctx.StaticVariable("clangExtraConlyflags", strings.Join([]string{
|
pctx.StaticVariable("clangExtraConlyflags", strings.Join([]string{
|
||||||
@@ -98,6 +101,10 @@ func init() {
|
|||||||
// Disable -Winconsistent-missing-override until we can clean up the existing
|
// Disable -Winconsistent-missing-override until we can clean up the existing
|
||||||
// codebase for it.
|
// codebase for it.
|
||||||
"-Wno-inconsistent-missing-override",
|
"-Wno-inconsistent-missing-override",
|
||||||
|
|
||||||
|
// Bug: http://b/29823425 Disable -Wnull-dereference until the
|
||||||
|
// new instances detected by this warning are fixed.
|
||||||
|
"-Wno-null-dereference",
|
||||||
}, " "))
|
}, " "))
|
||||||
|
|
||||||
pctx.StaticVariable("clangExtraTargetCflags", strings.Join([]string{
|
pctx.StaticVariable("clangExtraTargetCflags", strings.Join([]string{
|
||||||
@@ -106,7 +113,10 @@ func init() {
|
|||||||
|
|
||||||
pctx.StaticVariable("clangExtraNoOverrideCflags", strings.Join([]string{
|
pctx.StaticVariable("clangExtraNoOverrideCflags", strings.Join([]string{
|
||||||
"-Werror=address-of-temporary",
|
"-Werror=address-of-temporary",
|
||||||
"-Werror=null-dereference",
|
// Bug: http://b/29823425 Disable -Wnull-dereference until the
|
||||||
|
// new cases detected by this warning in Clang r271374 are
|
||||||
|
// fixed.
|
||||||
|
//"-Werror=null-dereference",
|
||||||
"-Werror=return-type",
|
"-Werror=return-type",
|
||||||
}, " "))
|
}, " "))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user