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

Commit 40a43808 authored by Yi Kong's avatar Yi Kong Committed by android-build-merger
Browse files

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

am: 04f01404

Change-Id: Iff0ddb70ac23f8d4b6b97ce9a6c0f9ba11876a4c
parents d60cb4a7 04f01404
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -173,16 +173,19 @@ 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 to disable warnings that are infeasible
	// to fix in all the external projects and their upstream repos.
	// Extra cflags for projects under external/ directory
	pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{
		"-Wno-enum-compare",
		"-Wno-enum-compare-switch",
		// TODO(yikong): Move -Wno flags here
	}, " "))
}