标签:may parameter nbsp struct button make -o 去掉 log
“src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘current_salt’”
src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[2] << 16;
~~^~~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:38:5: note: here
case 2:
^~~~
src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[1] << 8;
~~^~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:40:5: note: here
原因:将警告当成错误处理
解决错误1:进入到nginx-1.10.3目录下(即解压的目录)
找到当前目录下找到objs文件夹,并进入,打开文件Makefile,找到有一下内容的这行:
CFLAGS = -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
cd objs
vim Makefile
把这行内容中的 “-Werror”去掉
-Werror: gcc将所有的警告当成错误进行处理
标签:may parameter nbsp struct button make -o 去掉 log
原文地址:https://www.cnblogs.com/kylin5201314/p/14286955.html