Skip to content

Disable -Werror for http parser. #1065

@ocktech

Description

@ocktech

I am getting this error when installing on ubuntu 17.10.

build http-parser-2.1
patching file Makefile
cc -I. -DHTTP_PARSER_STRICT=1 -Wall -Wextra -Werror -O0 -g -c http_parser.c
http_parser.c: In function ‘http_parser_parse_url’:'

This line is already in English and does not require translation.
http_parser.c:2093:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
found_at = 1;
~~~~~~~~~^~~
http_parser.c:2096:7: note: here
case s_req_server:
^~~~
cc1: all warnings being treated as errors
Makefile:40: recipe for target 'http_parser.o' failed
make: *** [http_parser.o] Error 1
build http-parser-2.1 failed, ret=2

TRANS_BY_GPT3

Metadata

Metadata

Assignees

Labels

EnhancementImprovement or enhancement.TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions