Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 7271:9e25a5380a21
Silenced -Wcast-function-type warnings (closes #1546).
Cast to intermediate "void *" to lose compiler knowledge about the original
type and pass the warning. This is not a real fix but rather a workaround.
Found by gcc8.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 07 May 2018 09:54:37 +0000 |
parents | 06cf0c4b8618 |
children | 45e513c3540d |
comparison
equal
deleted
inserted
replaced
7270:46c0c7ef4913 | 7271:9e25a5380a21 |
---|---|
3262 sizeof(ngx_http_script_copy_code_t)); | 3262 sizeof(ngx_http_script_copy_code_t)); |
3263 if (copy == NULL) { | 3263 if (copy == NULL) { |
3264 return NGX_ERROR; | 3264 return NGX_ERROR; |
3265 } | 3265 } |
3266 | 3266 |
3267 copy->code = (ngx_http_script_code_pt) ngx_http_script_copy_len_code; | 3267 copy->code = (ngx_http_script_code_pt) (void *) |
3268 ngx_http_script_copy_len_code; | |
3268 copy->len = src[i].key.len; | 3269 copy->len = src[i].key.len; |
3269 | 3270 |
3270 copy = ngx_array_push_n(params->lengths, | 3271 copy = ngx_array_push_n(params->lengths, |
3271 sizeof(ngx_http_script_copy_code_t)); | 3272 sizeof(ngx_http_script_copy_code_t)); |
3272 if (copy == NULL) { | 3273 if (copy == NULL) { |
3273 return NGX_ERROR; | 3274 return NGX_ERROR; |
3274 } | 3275 } |
3275 | 3276 |
3276 copy->code = (ngx_http_script_code_pt) ngx_http_script_copy_len_code; | 3277 copy->code = (ngx_http_script_code_pt) (void *) |
3278 ngx_http_script_copy_len_code; | |
3277 copy->len = src[i].skip_empty; | 3279 copy->len = src[i].skip_empty; |
3278 | 3280 |
3279 | 3281 |
3280 size = (sizeof(ngx_http_script_copy_code_t) | 3282 size = (sizeof(ngx_http_script_copy_code_t) |
3281 + src[i].key.len + sizeof(uintptr_t) - 1) | 3283 + src[i].key.len + sizeof(uintptr_t) - 1) |