summaryrefslogtreecommitdiff
path: root/src/select
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-10-22 13:18:57 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2017-10-22 13:18:57 +0100
commita827023bed3815e332a33dc9f061584cbf424313 (patch)
tree0288ff7343444a45bb040507778c921cf025795d /src/select
parent03448f482ab3f30f85a4557ca3ec1a249b173412 (diff)
downloadlibcss-a827023bed3815e332a33dc9f061584cbf424313.tar.gz
libcss-a827023bed3815e332a33dc9f061584cbf424313.tar.bz2
Squash GCC7 -Wimplicit-fallthrough warnings.
Diffstat (limited to 'src/select')
-rw-r--r--src/select/arena_hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select/arena_hash.h b/src/select/arena_hash.h
index 58abcd4..449284f 100644
--- a/src/select/arena_hash.h
+++ b/src/select/arena_hash.h
@@ -49,8 +49,8 @@ static inline uint32_t css__arena_hash(const uint8_t *data, size_t len)
/* Hash any left over bytes */
switch (len) {
- case 3: h ^= data[2] << 16;
- case 2: h ^= data[1] << 8;
+ case 3: h ^= data[2] << 16; /* Fall through */
+ case 2: h ^= data[1] << 8; /* Fall through */
case 1: h ^= data[0];
h *= m;
}