mirror of
https://github.com/nginx/nginx.git
synced 2024-12-22 15:13:28 -06:00
Added missing "fall through" comments (ticket #1259).
Found by gcc7 (-Wimplicit-fallthrough).
This commit is contained in:
parent
8ae2bc9320
commit
8449f750e6
@ -35,8 +35,10 @@ ngx_murmur_hash2(u_char *data, size_t len)
|
|||||||
switch (len) {
|
switch (len) {
|
||||||
case 3:
|
case 3:
|
||||||
h ^= data[2] << 16;
|
h ^= data[2] << 16;
|
||||||
|
/* fall through */
|
||||||
case 2:
|
case 2:
|
||||||
h ^= data[1] << 8;
|
h ^= data[1] << 8;
|
||||||
|
/* fall through */
|
||||||
case 1:
|
case 1:
|
||||||
h ^= data[0];
|
h ^= data[0];
|
||||||
h *= 0x5bd1e995;
|
h *= 0x5bd1e995;
|
||||||
|
@ -1396,6 +1396,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
|
|||||||
goto done;
|
goto done;
|
||||||
case '+':
|
case '+':
|
||||||
r->plus_in_uri = 1;
|
r->plus_in_uri = 1;
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
state = sw_usual;
|
state = sw_usual;
|
||||||
*u++ = ch;
|
*u++ = ch;
|
||||||
@ -1437,6 +1438,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
|
|||||||
goto done;
|
goto done;
|
||||||
case '+':
|
case '+':
|
||||||
r->plus_in_uri = 1;
|
r->plus_in_uri = 1;
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
state = sw_usual;
|
state = sw_usual;
|
||||||
*u++ = ch;
|
*u++ = ch;
|
||||||
@ -1484,6 +1486,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
|
|||||||
goto done;
|
goto done;
|
||||||
case '+':
|
case '+':
|
||||||
r->plus_in_uri = 1;
|
r->plus_in_uri = 1;
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
state = sw_usual;
|
state = sw_usual;
|
||||||
*u++ = ch;
|
*u++ = ch;
|
||||||
|
@ -413,6 +413,7 @@ ngx_signal_handler(int signo, siginfo_t *siginfo, void *ucontext)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ngx_debug_quit = 1;
|
ngx_debug_quit = 1;
|
||||||
|
/* fall through */
|
||||||
case ngx_signal_value(NGX_SHUTDOWN_SIGNAL):
|
case ngx_signal_value(NGX_SHUTDOWN_SIGNAL):
|
||||||
ngx_quit = 1;
|
ngx_quit = 1;
|
||||||
action = ", shutting down";
|
action = ", shutting down";
|
||||||
|
Loading…
Reference in New Issue
Block a user