安装Nginx遇到cc1:所有警告被当作错误
在安装Nginx中,执行make指令之后出现以下错误:src/core/ngx_murmurhash.c:37:11: 错误:this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data << 16;
~~^~~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:38:5: 附注:here
case 2:
^~~~
src/core/ngx_murmurhash.c:39:11: 错误:this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data << 8;
~~^~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:40:5: 附注:here
case 1:
^~~~
cc1:所有的警告都被当作是错误
make: *** 错误 1
make: 离开目录“/usr/local/nginx-1.8.0”
make: *** 错误 2
望大佬告知!谢谢
makefile 中有这么个参数-Werror,把它去掉。自己改下,重新编译应该就可以了
页:
[1]