wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

Compilation warning (commit 4aa2abdc420abf14a6c02e630763442bb1ea4e56) #230

Closed mkonecny closed 8 years ago

mkonecny commented 8 years ago

Latest Git commit 4aa2abdc420abf14a6c02e630763442bb1ea4e56

In file included from /home/martin/tmp/nginx-1.4.6/debian/modules/nginx-push-stream-module/src/ngx_http_push_stream_module.c:29:0:
/home/martin/tmp/nginx-1.4.6/debian/modules/nginx-push-stream-module/src/ngx_http_push_stream_module_utils.c: In function ‘ngx_http_push_stream_convert_char_to_msg_on_shared’:
/home/martin/tmp/nginx-1.4.6/debian/modules/nginx-push-stream-module/src/ngx_http_push_stream_module_utils.c:316:5: error: implicit declaration of function ‘ngx_slab_calloc’ [-Werror=implicit-function-declaration]
     if ((msg->formatted_messages = ngx_slab_calloc(shpool, sizeof(ngx_str_t) * msg->qtd_templates)) == NULL) {
     ^
/home/martin/tmp/nginx-1.4.6/debian/modules/nginx-push-stream-module/src/ngx_http_push_stream_module_utils.c:316:34: error: assignment makes pointer from integer without a cast [-Werror]
     if ((msg->formatted_messages = ngx_slab_calloc(shpool, sizeof(ngx_str_t) * msg->qtd_templates)) == NULL) {

gcc version: 4.8.4