安装nginx发生的异常之未使用变量

问题:


src/core/ngx_resolver.c: In function 鈥榥gx_resolver_process_ptr鈥
src/core/ngx_resolver.c:1425:43: error: variable 鈥榪class鈥set but not used [-Werror=unused-but-set-variable]
src/core/ngx_resolver.c:1425:36: error: variable 鈥榪type鈥set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors




解决方法:


  找到对应Makefile文件,删除Werror

你可能感兴趣的:(nginx)