summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-04-06 09:35:22 -0700
committerAndreas Gampe <agampe@google.com>2015-04-06 14:05:07 -0700
commit65b798ea10dd716c1bb3dda029f9bf255435af72 (patch)
tree774e9901b6917989a63f07f927c3b4d8b921a013 /build
parentc411c6cc327d3f2b3b4d1987b07dd442205d9454 (diff)
downloadart-65b798ea10dd716c1bb3dda029f9bf255435af72.zip
art-65b798ea10dd716c1bb3dda029f9bf255435af72.tar.gz
art-65b798ea10dd716c1bb3dda029f9bf255435af72.tar.bz2
ART: Enable more Clang warnings
Change-Id: Ie6aba02f4223b1de02530e1515c63505f37e184c
Diffstat (limited to 'build')
-rw-r--r--build/Android.common_build.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/Android.common_build.mk b/build/Android.common_build.mk
index 8b4be82..8eeeec6 100644
--- a/build/Android.common_build.mk
+++ b/build/Android.common_build.mk
@@ -141,6 +141,9 @@ 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
+
# GCC-only warnings.
art_gcc_cflags := -Wunused-but-set-parameter