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

Commit 4d048d59 authored by Yi Kong's avatar Yi Kong
Browse files

Move -Wno-inconsistent-missing-override to ClangExtraCflags

So that projects can override the flag through cflag (CPPFlags are
appended after CFlags).

Test: m checkbuild
Change-Id: Ib72f4ed4731f41982a0eb8a90c782c09810aa8c9
parent 044ead6b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -132,13 +132,13 @@ func init() {

		// Warnings from clang-8.0
		"-Wno-defaulted-function-deleted",
	}, " "))

	pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{
		// Disable -Winconsistent-missing-override until we can clean up the existing
		// codebase for it.
		"-Wno-inconsistent-missing-override",
	}, " "))

	pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{
		// Enable clang's thread-safety annotations in libcxx.
		// Turn off -Wthread-safety-negative, to avoid breaking projects that use -Weverything.
		"-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",