summaryrefslogtreecommitdiffstats
path: root/libunwindstack/DwarfCfa.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-09-13 11:08:41 -0700
committerChih-hung Hsieh <chh@google.com>2018-09-17 16:50:11 +0000
commit502f4864d6c92fce4cb0e4f7f2b12d7124da902b (patch)
treeb34cb377a8a6543fb0baf68e566b120209b3aaf9 /libunwindstack/DwarfCfa.cpp
parentc2501fda600ea2067099c1de042e3db7acde74ee (diff)
downloadsystem_core-502f4864d6c92fce4cb0e4f7f2b12d7124da902b.tar.gz
system_core-502f4864d6c92fce4cb0e4f7f2b12d7124da902b.tar.bz2
system_core-502f4864d6c92fce4cb0e4f7f2b12d7124da902b.zip
Suppress implicit-fallthrough warnings.
Add FALLTHROUGH_INTENDED for clang compiler. Bug: 112564944 Test: build with global -Wimplicit-fallthrough. Change-Id: I40f8bbf94e207c9dd90921e9b762ba51abab5777
Diffstat (limited to 'libunwindstack/DwarfCfa.cpp')
-rw-r--r--libunwindstack/DwarfCfa.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libunwindstack/DwarfCfa.cpp b/libunwindstack/DwarfCfa.cpp
index cd9ef6141..0fa163820 100644
--- a/libunwindstack/DwarfCfa.cpp
+++ b/libunwindstack/DwarfCfa.cpp
@@ -21,6 +21,7 @@
#include <type_traits>
#include <vector>
+#include <android-base/macros.h>
#include <android-base/stringprintf.h>
#include <unwindstack/DwarfError.h>
@@ -154,13 +155,15 @@ std::string DwarfCfa<AddressType>::GetOperandString(uint8_t operand, uint64_t va
break;
case DwarfCfaInfo::DWARF_DISPLAY_ADVANCE_LOC:
*cur_pc += value;
- // Fall through to log the value.
+ FALLTHROUGH_INTENDED;
+ // Fall through to log the value.
case DwarfCfaInfo::DWARF_DISPLAY_NUMBER:
string += " " + std::to_string(value);
break;
case DwarfCfaInfo::DWARF_DISPLAY_SET_LOC:
*cur_pc = value;
- // Fall through to log the value.
+ FALLTHROUGH_INTENDED;
+ // Fall through to log the value.
case DwarfCfaInfo::DWARF_DISPLAY_ADDRESS:
if (std::is_same<AddressType, uint32_t>::value) {
string += android::base::StringPrintf(" 0x%" PRIx32, static_cast<uint32_t>(value));