From fc787ecd91127b2c8458afd94e5148e2ae51a1f5 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Thu, 9 Oct 2014 21:56:44 -0700 Subject: Enable -Wimplicit-fallthrough. Falling through switch cases on a clang build must now annotate the fallthrough with the FALLTHROUGH_INTENDED macro. Bug: 17731372 Change-Id: I836451cd5f96b01d1ababdbf9eef677fe8fa8324 --- runtime/check_jni.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/check_jni.cc') diff --git a/runtime/check_jni.cc b/runtime/check_jni.cc index bfe44a28bc..fec1824a9e 100644 --- a/runtime/check_jni.cc +++ b/runtime/check_jni.cc @@ -1128,7 +1128,7 @@ class ScopedCheck { *errorKind = "continuation"; return utf8; } - // Fall through to take care of the final byte. + FALLTHROUGH_INTENDED; // Fall-through to take care of the final byte. case 0x0c: case 0x0d: // Bit pattern 110x, so there is one additional byte. -- cgit v1.2.3-59-g8ed1b