summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-04-06 19:50:46 -0700
committerAndreas Gampe <agampe@google.com>2015-04-06 19:50:46 -0700
commit662226652394d0388b0f6a3c9f79a317de273c8f (patch)
treed2c4b4e8b56577808880463fe96cbe58d61bd289 /build
parent81a654301734aebf06d29d84993cbc52655020bc (diff)
downloadart-662226652394d0388b0f6a3c9f79a317de273c8f.zip
art-662226652394d0388b0f6a3c9f79a317de273c8f.tar.gz
art-662226652394d0388b0f6a3c9f79a317de273c8f.tar.bz2
ART: Turn off missing-noreturn for Mac
Too much stuff unimplemented and causing warnings. Change-Id: I43bae875f1eca3cc24e03b0e7d6fdfd2adae0cbd
Diffstat (limited to 'build')
-rw-r--r--build/Android.common_build.mk10
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.