From ed38d86abbea981dd3120c5929541c14d667c1ff Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Wed, 10 May 2017 19:19:14 +0300 Subject: [PATCH] Added missing "fall through" comments to make GCC 7 happy. --- src/nxt_http_parse.c | 3 +++ src/nxt_murmur_hash.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/nxt_http_parse.c b/src/nxt_http_parse.c index 95745ad4..aba889bf 100644 --- a/src/nxt_http_parse.c +++ b/src/nxt_http_parse.c @@ -599,10 +599,13 @@ nxt_http_lookup_field_end(u_char *p, u_char *end) switch (end - p) { case 3: nxt_http_lookup_field_end_step + /* Fall through. */ case 2: nxt_http_lookup_field_end_step + /* Fall through. */ case 1: nxt_http_lookup_field_end_step + /* Fall through. */ case 0: break; default: diff --git a/src/nxt_murmur_hash.c b/src/nxt_murmur_hash.c index e9adabfa..ce9d6004 100644 --- a/src/nxt_murmur_hash.c +++ b/src/nxt_murmur_hash.c @@ -37,8 +37,10 @@ nxt_murmur_hash2(const void *data, size_t len) switch (len) { case 3: h ^= p[2] << 16; + /* Fall through. */ case 2: h ^= p[1] << 8; + /* Fall through. */ case 1: h ^= p[0]; h *= m;