Open Mimikoo opened 10 years ago
sed -i -e "/method_subrequest_handler/,+10 s~\(//[[:blank:]]*\)\?\(ngx_http_request_t[[:blank:]]\+\*r;\)~// \2~I" \
-e "/method_subrequest_handler/,+20 s~\(//[[:blank:]]*\)\?\(r[[:blank:]]*=[[:blank:]]*sr->main[[:blank:]]*;\)~// \2~I" \
~/src/nginx-modules/ngx_http_js_module/src/classes/Request.c
This is the output of make: cc -c -I /home/mimiko/src/nginx-modules/ngx_http_js_module/src/ -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I/opt/GeoIP/include -I/opt/gperftools/include -I/opt/ffmpeg/include -DNDK_SET_VAR -I/home/mimiko/src/nginx-modules/nginx-rtmp-module -I/home/mimiko/src/nginx-modules/ngx_http_lower_upper_case -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -I/home/mimiko/src/nginx-modules/ngx_http_php_session -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -Wno-unused-function -Wno-missing-field-initializers -D_POSIX_C_SOURCE=200112L --std=c99 -Isrc -I src/core -I src/event -I src/event/modules -I src/os/unix -I /home/mimiko/src/nginx-modules/ngx_devel_kit/objs -I objs/addon/ndk -I /opt/libpq/include -I /opt/spidermonkey/include -I /home/mimiko/src/nginx-modules/nginx-video-thumbextractor-module/src -I /home/mimiko/src/nginx-modules/nginx-video-thumbextractor-module/include -I /opt/sregex/include -I /opt/luajit/include/luajit-2.0 -I /opt/luajit/include/luajit-2.0 -I /home/mimiko/src/nginx-modules/lua-nginx-module/src/api -I /home/mimiko/src/nginx-modules/nginx-push-stream-module/src -I /home/mimiko/src/nginx-modules/nginx-push-stream-module/include -I /home/mimiko/src/nginx-modules/nginx_http_push_module/src -I /home/mimiko/src/nginx-modules/nginx-selective-cache-purge-module/src -I /home/mimiko/src/nginx-modules/nginx-selective-cache-purge-module/include -I ../pcre -I ../openssl/.openssl/include -I ../zlib -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/modules/perl -I /home/mimiko/src/nginx-modules/ngx_devel_kit/src -I /home/mimiko/src/nginx-modules/nginx-upload-module -I /home/mimiko/src/nginx-modules/healthcheck_nginx_upstreams -I /home/mimiko/src/nginx-modules/nginx-http-sysguard -I src/mail \ -o objs/addon/classes/Request.o \ /home/mimiko/src/nginx-modules/ngx_http_js_module/src/classes/Request.c /home/mimiko/src/nginx-modules/ngx_http_js_module/src/classes/Request.c: In function Б─≤method_subrequest_handlerБ─≥: /home/mimiko/src/nginx-modules/ngx_http_js_module/src/classes/Request.c:1035:36: error: variable Б─≤rБ─≥ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors make[1]: * [objs/addon/classes/Request.o] Error 1 make[1]: Leaving directory `/home/mimiko/src/nginx' make: * [build] Error 2
I'm using Debian Wheezy x86_64. Nginx and module latest from git. I will try to issue -Wno-error=unused-but-set-variable