diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/Android.common_build.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build/Android.common_build.mk b/build/Android.common_build.mk index 8eeeec6..c60e75b 100644 --- a/build/Android.common_build.mk +++ b/build/Android.common_build.mk @@ -141,8 +141,14 @@ art_clang_cflags += -Wused-but-marked-unused # Enable warning for deprecated language features. art_clang_cflags += -Wdeprecated -# Enable warning for unreachable break & return, and missing NO_RETURN annotations. -art_clang_cflags += -Wunreachable-code-break -Wunreachable-code-return -Wmissing-noreturn +# Enable warning for unreachable break & return. +art_clang_cflags += -Wunreachable-code-break -Wunreachable-code-return + +# Enable missing-noreturn only on non-Mac. As lots of things are not implemented for Apple, it's +# a pain. +ifneq ($(HOST_OS),darwin) + art_clang_cflags += -Wmissing-noreturn +endif # GCC-only warnings. |