Fix implicit fallthrough warnings.

Test: make checkbuild
Bug: 112564944
Change-Id: Iaaa0e2c325e860572d058ae27a7ad7dc00134564
This commit is contained in:
Chih-Hung Hsieh
2018-10-12 15:44:27 -07:00
parent f06fb17cd7
commit 40b77ef6b5

View File

@@ -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;