Loading cc/config/clang.go +7 −4 Original line number Original line Diff line number Diff line Loading @@ -173,16 +173,19 @@ func init() { // this new warning are fixed. // this new warning are fixed. "-Wno-null-pointer-arithmetic", "-Wno-null-pointer-arithmetic", // http://b/72330874 Disable -Wenum-compare until the instances detected by this new // warning are fixed. "-Wno-enum-compare", "-Wno-enum-compare-switch", // Disable c++98-specific warning since Android is not concerned with C++98 // Disable c++98-specific warning since Android is not concerned with C++98 // compatibility. // compatibility. "-Wno-c++98-compat-extra-semi", "-Wno-c++98-compat-extra-semi", }, " ")) }, " ")) // Extra cflags for projects under external/ directory to disable warnings that are infeasible // Extra cflags for projects under external/ directory // to fix in all the external projects and their upstream repos. pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{ pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{ "-Wno-enum-compare", // TODO(yikong): Move -Wno flags here "-Wno-enum-compare-switch", }, " ")) }, " ")) } } Loading Loading
cc/config/clang.go +7 −4 Original line number Original line Diff line number Diff line Loading @@ -173,16 +173,19 @@ func init() { // this new warning are fixed. // this new warning are fixed. "-Wno-null-pointer-arithmetic", "-Wno-null-pointer-arithmetic", // http://b/72330874 Disable -Wenum-compare until the instances detected by this new // warning are fixed. "-Wno-enum-compare", "-Wno-enum-compare-switch", // Disable c++98-specific warning since Android is not concerned with C++98 // Disable c++98-specific warning since Android is not concerned with C++98 // compatibility. // compatibility. "-Wno-c++98-compat-extra-semi", "-Wno-c++98-compat-extra-semi", }, " ")) }, " ")) // Extra cflags for projects under external/ directory to disable warnings that are infeasible // Extra cflags for projects under external/ directory // to fix in all the external projects and their upstream repos. pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{ pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{ "-Wno-enum-compare", // TODO(yikong): Move -Wno flags here "-Wno-enum-compare-switch", }, " ")) }, " ")) } } Loading