Treat warning as errors

This commit is contained in:
Janek Bevendorff
2017-11-27 20:39:44 +01:00
parent d1c26e4535
commit d35f3fc573
4 changed files with 9 additions and 3 deletions

View File

@@ -1815,6 +1815,9 @@ reexecute:
case 2:
parser->upgrade = 1;
#if __GNUC__ >= 7
__attribute__ ((fallthrough));
#endif
case 1:
parser->flags |= F_SKIPBODY;
@@ -2374,6 +2377,9 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
case s_req_server_with_at:
found_at = 1;
#if __GNUC__ >= 7
__attribute__ ((fallthrough));
#endif
/* FALLTROUGH */
case s_req_server: