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

Commit 2d5ce853 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Gerrit Code Review
Browse files

Merge "soong: move -Wimplicit-fallthrough from cflags to cxxflags"

parents 31d57588 4e31fb87
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -101,9 +101,6 @@ func init() {
		// not emit the table by default on Android since NDK still uses GNU binutils.
		"-faddrsig",

		// -Wimplicit-fallthrough is not enabled by -Wall.
		"-Wimplicit-fallthrough",

		// Help catch common 32/64-bit errors.
		"-Werror=int-conversion",

@@ -138,6 +135,9 @@ func init() {
	}, " "))

	pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{
		// -Wimplicit-fallthrough is not enabled by -Wall.
		"-Wimplicit-fallthrough",

		// Enable clang's thread-safety annotations in libcxx.
		"-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",