Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1684264e authored by Yi Kong's avatar Yi Kong Committed by android-build-merger
Browse files

Merge "Revert "Revert "Move -Wno-enum-compare{,-switch} to external cflags"""...

Merge "Revert "Revert "Move -Wno-enum-compare{,-switch} to external cflags""" am: 6da4f7d7 am: 0ca4f2e1
am: 7f0c2330

Change-Id: I02b7305bbd1ef5d1a6549be065e57c9ad562afc1
parents 9e2945bb 7f0c2330
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -173,19 +173,16 @@ func init() {
		// 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",
		"-Wno-enum-compare-switch",

		// Disable c++98-specific warning since Android is not concerned with C++98
		// compatibility.
		"-Wno-c++98-compat-extra-semi",
	}, " "))

	// Extra cflags for projects under external/ directory
	// Extra cflags for projects under external/ directory to disable warnings that are infeasible
	// to fix in all the external projects and their upstream repos.
	pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{
		// TODO(yikong): Move -Wno flags here
		"-Wno-enum-compare",
		"-Wno-enum-compare-switch",
	}, " "))
}