OSDN Git Service

Enable -Wimplicit-fallthrough.
authorIan Rogers <irogers@google.com>
Fri, 10 Oct 2014 04:56:44 +0000 (21:56 -0700)
committerIan Rogers <irogers@google.com>
Fri, 10 Oct 2014 05:22:46 +0000 (22:22 -0700)
commitfc787ecd91127b2c8458afd94e5148e2ae51a1f5
treeef48c0f511ee9bf4ed85607cc4d530bace7e6cae
parent8fa8c904f7c783204a1dc9438429391d256658da
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
29 files changed:
build/Android.common_build.mk
compiler/dex/local_value_numbering.cc
compiler/dex/mir_graph.cc
compiler/dex/quick/arm/assemble_arm.cc
compiler/dex/quick/arm/int_arm.cc
compiler/dex/quick/arm/utility_arm.cc
compiler/dex/quick/arm64/assemble_arm64.cc
compiler/dex/quick/arm64/utility_arm64.cc
compiler/dex/quick/gen_common.cc
compiler/dex/quick/gen_invoke.cc
compiler/dex/quick/mips/assemble_mips.cc
compiler/dex/quick/mir_to_lir.cc
compiler/dex/quick/x86/int_x86.cc
compiler/dex/quick/x86/utility_x86.cc
compiler/optimizing/code_generator_arm.cc
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/code_generator_x86_64.cc
disassembler/disassembler_arm.cc
disassembler/disassembler_x86.cc
runtime/arch/x86/fault_handler_x86.cc
runtime/base/macros.h
runtime/check_jni.cc
runtime/debugger.cc
runtime/dex_file_verifier.cc
runtime/dex_instruction-inl.h
runtime/dex_instruction.cc
runtime/gc/allocator/rosalloc.cc
runtime/hprof/hprof.cc
runtime/native/java_lang_reflect_Field.cc