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

Commit df76efe5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Move -Wno-null-pointer-arithmetic to external only"

parents 82798583 c9f6db50
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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",
	}, " "))
}