Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Fix FALLTHROUGH warning in switch of GCC7
Browse files Browse the repository at this point in the history
PR-URL: #357
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
misery authored and indutny committed Jun 14, 2017
1 parent 8ea9532 commit 0852bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http_parser.c
Expand Up @@ -1760,6 +1760,7 @@ size_t http_parser_execute (http_parser *parser,
case 2:
parser->upgrade = 1;

/* FALLTHROUGH */
case 1:
parser->flags |= F_SKIPBODY;
break;
Expand Down Expand Up @@ -2319,7 +2320,7 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
case s_req_server_with_at:
found_at = 1;

/* FALLTROUGH */
/* FALLTHROUGH */
case s_req_server:
uf = UF_HOST;
break;
Expand Down

0 comments on commit 0852bea

Please sign in to comment.