diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-10-22 13:18:57 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-10-22 13:18:57 +0100 |
commit | a827023bed3815e332a33dc9f061584cbf424313 (patch) | |
tree | 0288ff7343444a45bb040507778c921cf025795d | |
parent | 03448f482ab3f30f85a4557ca3ec1a249b173412 (diff) | |
download | libcss-a827023bed3815e332a33dc9f061584cbf424313.tar.gz libcss-a827023bed3815e332a33dc9f061584cbf424313.tar.bz2 |
Squash GCC7 -Wimplicit-fallthrough warnings.
-rw-r--r-- | src/parse/parse.c | 4 | ||||
-rw-r--r-- | src/select/arena_hash.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/parse/parse.c b/src/parse/parse.c index 68492d4..4cc1c98 100644 --- a/src/parse/parse.c +++ b/src/parse/parse.c @@ -2098,8 +2098,8 @@ css_error parseMalformedDeclaration(css_parser *parser) ; state->substate = Go; - /* Fall through */ } + /* Fall through */ case Go: while (1) { char want; @@ -2296,8 +2296,8 @@ css_error parseMalformedAtRule(css_parser *parser) ; state->substate = Go; - /* Fall through */ } + /* Fall through */ case Go: while (1) { char want; 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; } |