Skip to content

nginx1.7.4: using "-Werror"#5

Open
eeertekin wants to merge 1 commit intovision5:masterfrom
eeertekin:patch-1
Open

nginx1.7.4: using "-Werror"#5
eeertekin wants to merge 1 commit intovision5:masterfrom
eeertekin:patch-1

Conversation

@eeertekin
Copy link

cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/mail
-o objs/addon/src/ngx_http_mongo_module.o
./ngx_mongo//src/ngx_http_mongo_module.c
./ngx_mongo//src/ngx_http_mongo_module.c: In function ‘ngx_http_mongo_create_predefined_request’:
./ngx_mongo//src/ngx_http_mongo_module.c:681:28: error: variable ‘mctx’ set but not used [-Werror=unused-but-set-variable]
ngx_http_mongo_ctx_t mctx;
^
cc1: all warnings being treated as errors
make[1]: *
* [objs/addon/src/ngx_http_mongo_module.o] Error 1
make[1]: Leaving directory `/usr/src/nginx-1.7.4'
make: *** [build] Error 2

cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/mail \
		-o objs/addon/src/ngx_http_mongo_module.o \
		./ngx_mongo//src/ngx_http_mongo_module.c
./ngx_mongo//src/ngx_http_mongo_module.c: In function ‘ngx_http_mongo_create_predefined_request’:
./ngx_mongo//src/ngx_http_mongo_module.c:681:28: error: variable ‘mctx’ set but not used [-Werror=unused-but-set-variable]
     ngx_http_mongo_ctx_t  *mctx;
                            ^
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/src/ngx_http_mongo_module.o] Error 1
make[1]: Leaving directory `/usr/src/nginx-1.7.4'
make: *** [build] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant