nginx编译下出现error: this statement may fall through [-Werror=implicit-fallthrough=]

Posted 杨灏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx编译下出现error: this statement may fall through [-Werror=implicit-fallthrough=]相关的知识,希望对你有一定的参考价值。

当我们执行make时出现如下错误

原因:表示打开gcc的所有警告 -Werror,它要求gcc将所有的警告当成错误进行处理 

解决:vim objs/Makefile 

再次进行make问题解决

当修改Makefile后面还可能出现一系列问题,可以查看:http://www.mamicode.com/info-detail-3008792.html

以上是关于nginx编译下出现error: this statement may fall through [-Werror=implicit-fallthrough=]的主要内容,如果未能解决你的问题,请参考以下文章