summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-10-22 12:21:27 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2017-10-22 12:21:27 (GMT)
commit50e568df2ca8252019460a7d43cb83efa600d02d (patch)
tree333d8548d063d32236f9b11bfbcea33feb33afcb
parentad979f25037ab878d80634c945daa0ff326d885a (diff)
downloadlibnsgif-50e568df2ca8252019460a7d43cb83efa600d02d.tar.gz
libnsgif-50e568df2ca8252019460a7d43cb83efa600d02d.tar.bz2
Squash GCC7 -Wimplicit-fallthrough warnings.HEADmaster
-rw-r--r--src/lzw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lzw.c b/src/lzw.c
index 743f4d3..d65f77e 100644
--- a/src/lzw.c
+++ b/src/lzw.c
@@ -167,8 +167,8 @@ static inline lzw_result lzw__next_code(
/* Fast path: code fully inside this sub-block */
const uint8_t *data = ctx->sb_data + (ctx->sb_bit >> 3);
switch (byte_advance) {
- case 2: code |= data[2] << 16;
- case 1: code |= data[1] << 8;
+ case 2: code |= data[2] << 16; /* Fall through */
+ case 1: code |= data[1] << 8; /* Fall through */
case 0: code |= data[0] << 0;
}
ctx->sb_bit += code_size;