summaryrefslogtreecommitdiffstats
path: root/confirmationui
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-10-12 15:44:27 -0700
committerChih-Hung Hsieh <chh@google.com>2018-10-15 10:30:38 -0700
commit40b77ef6b553f4d2265c7427f1357a25fa14b30b (patch)
tree3143a5fe60c2b58a78347e4a5bdf17af30e88564 /confirmationui
parentf06fb17cd7170737cc3322a6820a1e9a3d509bf2 (diff)
downloadplatform_hardware_interfaces-40b77ef6b553f4d2265c7427f1357a25fa14b30b.tar.gz
platform_hardware_interfaces-40b77ef6b553f4d2265c7427f1357a25fa14b30b.tar.bz2
platform_hardware_interfaces-40b77ef6b553f4d2265c7427f1357a25fa14b30b.zip
Fix implicit fallthrough warnings.
Test: make checkbuild Bug: 112564944 Change-Id: Iaaa0e2c325e860572d058ae27a7ad7dc00134564
Diffstat (limited to 'confirmationui')
-rw-r--r--confirmationui/support/src/cbor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/confirmationui/support/src/cbor.cpp b/confirmationui/support/src/cbor.cpp
index e7ea164d91..3685521c7b 100644
--- a/confirmationui/support/src/cbor.cpp
+++ b/confirmationui/support/src/cbor.cpp
@@ -36,11 +36,14 @@ WriteState writeBytes(WriteState state, uint64_t value, uint8_t size) {
*pos++ = getByte(value, 6);
*pos++ = getByte(value, 5);
*pos++ = getByte(value, 4);
+ [[fallthrough]];
case 4:
*pos++ = getByte(value, 3);
*pos++ = getByte(value, 2);
+ [[fallthrough]];
case 2:
*pos++ = getByte(value, 1);
+ [[fallthrough]];
case 1:
*pos++ = value;
break;