Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 6994:f38647c651a8
Added missing "fall through" comments (ticket #1259).
Found by gcc7 (-Wimplicit-fallthrough).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 27 Apr 2017 16:57:18 +0300 |
parents | 8801ff7d58e1 |
children | e3723f2a11b7 |
comparison
equal
deleted
inserted
replaced
6993:8801ff7d58e1 | 6994:f38647c651a8 |
---|---|
1394 goto args; | 1394 goto args; |
1395 case '#': | 1395 case '#': |
1396 goto done; | 1396 goto done; |
1397 case '+': | 1397 case '+': |
1398 r->plus_in_uri = 1; | 1398 r->plus_in_uri = 1; |
1399 /* fall through */ | |
1399 default: | 1400 default: |
1400 state = sw_usual; | 1401 state = sw_usual; |
1401 *u++ = ch; | 1402 *u++ = ch; |
1402 break; | 1403 break; |
1403 } | 1404 } |
1435 goto args; | 1436 goto args; |
1436 case '#': | 1437 case '#': |
1437 goto done; | 1438 goto done; |
1438 case '+': | 1439 case '+': |
1439 r->plus_in_uri = 1; | 1440 r->plus_in_uri = 1; |
1441 /* fall through */ | |
1440 default: | 1442 default: |
1441 state = sw_usual; | 1443 state = sw_usual; |
1442 *u++ = ch; | 1444 *u++ = ch; |
1443 break; | 1445 break; |
1444 } | 1446 } |
1482 goto args; | 1484 goto args; |
1483 case '#': | 1485 case '#': |
1484 goto done; | 1486 goto done; |
1485 case '+': | 1487 case '+': |
1486 r->plus_in_uri = 1; | 1488 r->plus_in_uri = 1; |
1489 /* fall through */ | |
1487 default: | 1490 default: |
1488 state = sw_usual; | 1491 state = sw_usual; |
1489 *u++ = ch; | 1492 *u++ = ch; |
1490 break; | 1493 break; |
1491 } | 1494 } |