Fix FALLTHROUGH warning in switch of GCC7

PR-URL: https://github.com/nodejs/http-parser/pull/357
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
make-http-max-header-size-gyp-configurable
André Klitzing 8 years ago committed by Fedor Indutny
parent 8ea9532378
commit 0852bea482

@ -1760,6 +1760,7 @@ reexecute:
case 2: case 2:
parser->upgrade = 1; parser->upgrade = 1;
/* FALLTHROUGH */
case 1: case 1:
parser->flags |= F_SKIPBODY; parser->flags |= F_SKIPBODY;
break; break;
@ -2319,7 +2320,7 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
case s_req_server_with_at: case s_req_server_with_at:
found_at = 1; found_at = 1;
/* FALLTROUGH */ /* FALLTHROUGH */
case s_req_server: case s_req_server:
uf = UF_HOST; uf = UF_HOST;
break; break;

Loading…
Cancel
Save