|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
在安装Nginx中,执行make指令之后出现以下错误:
src/core/ngx_murmurhash.c:37:11: 错误:this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[2] << 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[1] << 8;
~~^~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:40:5: 附注:here
case 1:
^~~~
cc1:所有的警告都被当作是错误
make[1]: *** [objs/Makefile:433:objs/src/core/ngx_murmurhash.o] 错误 1
make[1]: 离开目录“/usr/local/nginx-1.8.0”
make: *** [Makefile:8:build] 错误 2
望大佬告知!谢谢
makefile 中有这么个参数 -Werror,把它去掉。自己改下,重新编译应该就可以了
|
|