comparison src/http/ngx_http_parse.c @ 7136:d409ab1e8e4d stable-1.12

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 57148b755320
children
comparison
equal deleted inserted replaced
7135:5e1112ac82d5 7136:d409ab1e8e4d
1388 goto args; 1388 goto args;
1389 case '#': 1389 case '#':
1390 goto done; 1390 goto done;
1391 case '+': 1391 case '+':
1392 r->plus_in_uri = 1; 1392 r->plus_in_uri = 1;
1393 /* fall through */
1393 default: 1394 default:
1394 state = sw_usual; 1395 state = sw_usual;
1395 *u++ = ch; 1396 *u++ = ch;
1396 break; 1397 break;
1397 } 1398 }
1429 goto args; 1430 goto args;
1430 case '#': 1431 case '#':
1431 goto done; 1432 goto done;
1432 case '+': 1433 case '+':
1433 r->plus_in_uri = 1; 1434 r->plus_in_uri = 1;
1435 /* fall through */
1434 default: 1436 default:
1435 state = sw_usual; 1437 state = sw_usual;
1436 *u++ = ch; 1438 *u++ = ch;
1437 break; 1439 break;
1438 } 1440 }
1476 goto args; 1478 goto args;
1477 case '#': 1479 case '#':
1478 goto done; 1480 goto done;
1479 case '+': 1481 case '+':
1480 r->plus_in_uri = 1; 1482 r->plus_in_uri = 1;
1483 /* fall through */
1481 default: 1484 default:
1482 state = sw_usual; 1485 state = sw_usual;
1483 *u++ = ch; 1486 *u++ = ch;
1484 break; 1487 break;
1485 } 1488 }