From: Igor Sysoev Date: Fri, 4 Mar 2016 11:57:21 +0000 (+0300) Subject: Fixed building by GCC 4.1. X-Git-Tag: 0.1.0~49 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=4030015ce7806d0c36b42678cbc460c7b2296349;p=njs.git Fixed building by GCC 4.1. --- diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index d610bb9c..94fd858d 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -449,7 +449,8 @@ ngx_http_js_vm_run(ngx_http_request_t *r, ngx_http_js_ctx_t *js, cln->handler = ngx_http_js_cleanup_mem_cache_pool; cln->data = mcp; - nvm = njs_vm_clone(js->vm, mcp, (void **) &r); + /* The double cast is required by GCC 4.1. */ + nvm = njs_vm_clone(js->vm, mcp, (void **) (void *) &r); if (nvm == NULL) { return NGX_ERROR; }