Added missing "fall through" comments (ticket #1259).

Found by gcc7 (-Wimplicit-fallthrough).
This commit is contained in:
Maxim Dounin 2017-04-27 16:57:18 +03:00
parent 4b74e5492d
commit f13f641b67
3 changed files with 6 additions and 0 deletions

View File

@ -35,8 +35,10 @@ ngx_murmur_hash2(u_char *data, size_t len)
switch (len) {
case 3:
h ^= data[2] << 16;
/* fall through */
case 2:
h ^= data[1] << 8;
/* fall through */
case 1:
h ^= data[0];
h *= 0x5bd1e995;

View File

@ -1390,6 +1390,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
goto done;
case '+':
r->plus_in_uri = 1;
/* fall through */
default:
state = sw_usual;
*u++ = ch;
@ -1431,6 +1432,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
goto done;
case '+':
r->plus_in_uri = 1;
/* fall through */
default:
state = sw_usual;
*u++ = ch;
@ -1478,6 +1480,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
goto done;
case '+':
r->plus_in_uri = 1;
/* fall through */
default:
state = sw_usual;
*u++ = ch;

View File

@ -405,6 +405,7 @@ ngx_signal_handler(int signo)
break;
}
ngx_debug_quit = 1;
/* fall through */
case ngx_signal_value(NGX_SHUTDOWN_SIGNAL):
ngx_quit = 1;
action = ", shutting down";