Merge "soong: move -Wimplicit-fallthrough from cflags to cxxflags"
This commit is contained in:
@@ -101,9 +101,6 @@ func init() {
|
|||||||
// not emit the table by default on Android since NDK still uses GNU binutils.
|
// not emit the table by default on Android since NDK still uses GNU binutils.
|
||||||
"-faddrsig",
|
"-faddrsig",
|
||||||
|
|
||||||
// -Wimplicit-fallthrough is not enabled by -Wall.
|
|
||||||
"-Wimplicit-fallthrough",
|
|
||||||
|
|
||||||
// Help catch common 32/64-bit errors.
|
// Help catch common 32/64-bit errors.
|
||||||
"-Werror=int-conversion",
|
"-Werror=int-conversion",
|
||||||
|
|
||||||
@@ -138,6 +135,9 @@ func init() {
|
|||||||
}, " "))
|
}, " "))
|
||||||
|
|
||||||
pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{
|
pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{
|
||||||
|
// -Wimplicit-fallthrough is not enabled by -Wall.
|
||||||
|
"-Wimplicit-fallthrough",
|
||||||
|
|
||||||
// Enable clang's thread-safety annotations in libcxx.
|
// Enable clang's thread-safety annotations in libcxx.
|
||||||
"-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
|
"-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user