Skip to content

Fix compilation error #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2016
Merged

Fix compilation error #35

merged 1 commit into from
Apr 29, 2016

Conversation

toogle
Copy link
Contributor

@toogle toogle commented Apr 29, 2016

Fix empty body compilation error:

...
cc -c -I/usr/include/luajit-2.0  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I/tmp/nginx_upstream_module/third_party -DNDK_SET_VAR         -I/tmp/nginx_upstream_module/src         -I/tmp/nginx_upstream_module/third_party         -I/tmp/nginx_upstream_module/third_party/msgpuck         -I/tmp/nginx_upstream_module/third_party/yajl/build/yajl-2.1.0/include           -I src/core -I src/event -I src/event/modules -I src/os/unix -I /tmp/ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /tmp/lua-nginx-module-0.10.2/src/api -I objs -I src/http -I src/http/modules -I /tmp/ngx_devel_kit-0.2.19/src -I /usr/include/luajit-2.0 \
        -o objs/addon/src/tp_transcode.o \
        /tmp/nginx_upstream_module/src/tp_transcode.c
/tmp/nginx_upstream_module/src/tp_transcode.c: In function 'yajl_json2tp_complete':
/tmp/nginx_upstream_module/src/tp_transcode.c:82:52: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
     dd("line:%d, code:%d,  msg:%s", __LINE__, c, e); \
                                                    ^
/tmp/nginx_upstream_module/src/tp_transcode.c:103:13: note: in expansion of macro 'say_error'
             say_error((ctx), -32700, "invalid json")
             ^
/tmp/nginx_upstream_module/src/tp_transcode.c:765:9: note: in expansion of macro 'say_invalid_json'
         say_invalid_json(s_ctx);
         ^
...

@dedok dedok merged commit b852195 into tarantool:master Apr 29, 2016
@toogle toogle deleted the bugfix/compilation-error branch April 29, 2016 19:56
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.

2 participants