From 0852bea482e0842b0445c14b19dc9b318a6c4eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Klitzing?= Date: Thu, 9 Mar 2017 15:54:39 +0100 Subject: [PATCH] Fix FALLTHROUGH warning in switch of GCC7 PR-URL: https://github.com/nodejs/http-parser/pull/357 Reviewed-By: Ben Noordhuis --- http_parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http_parser.c b/http_parser.c index f676dbb..60da8f0 100644 --- a/http_parser.c +++ b/http_parser.c @@ -1760,6 +1760,7 @@ reexecute: case 2: parser->upgrade = 1; + /* FALLTHROUGH */ case 1: parser->flags |= F_SKIPBODY; break; @@ -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;