首页 > Web开发 > 详细

linux下编译nginx-1.10.1报错:src/http/ngx_http_parse.c:1384:32: warning: this statement may fall through [-Wimplicit-fallthrough=]

时间:2020-06-30 19:50:57      阅读:94      评论:0      收藏:0      [点我收藏+]

linux下编译nginx-1.10.1报错:src/http/ngx_http_parse.c:1384:32: warning: this statement may fall through [-Wimplicit-fallthrough=]

原因:gcc编译版本问题导致。

解决办法:

解决办法:进入到/root/nginpage/nginx-1.10.1/objs/目录下(解压的目录)
打开编辑文件Makefile,找到有一下内容的这行:
CFLAGS = -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
把这行内容中的后面加上-Wno-implicit-fallthrough 即可忽略gcc7编译时switch-case中缺少break的错误。

linux下编译nginx-1.10.1报错:src/http/ngx_http_parse.c:1384:32: warning: this statement may fall through [-Wimplicit-fallthrough=]

原文:https://www.cnblogs.com/cg-take/p/13215202.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!