diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2018-05-07 09:54:37 +0000 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2018-05-07 09:54:37 +0000 |
| commit | ed41ac66a24d51820391ef207db492f026193758 (patch) | |
| tree | de7654699e48a8af04080e098491965a93052ead /src/http/modules/ngx_http_scgi_module.c | |
| parent | 87c1e1bd364699ac20376be62506ac0877ca035c (diff) | |
| download | nginx-ed41ac66a24d51820391ef207db492f026193758.tar.gz nginx-ed41ac66a24d51820391ef207db492f026193758.tar.bz2 | |
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.
Diffstat (limited to 'src/http/modules/ngx_http_scgi_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_scgi_module.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c index 3fb227b28..9bd45bd13 100644 --- a/src/http/modules/ngx_http_scgi_module.c +++ b/src/http/modules/ngx_http_scgi_module.c @@ -1724,7 +1724,8 @@ ngx_http_scgi_init_params(ngx_conf_t *cf, ngx_http_scgi_loc_conf_t *conf, return NGX_ERROR; } - copy->code = (ngx_http_script_code_pt) ngx_http_script_copy_len_code; + copy->code = (ngx_http_script_code_pt) (void *) + ngx_http_script_copy_len_code; copy->len = src[i].key.len + 1; copy = ngx_array_push_n(params->lengths, @@ -1733,7 +1734,8 @@ ngx_http_scgi_init_params(ngx_conf_t *cf, ngx_http_scgi_loc_conf_t *conf, return NGX_ERROR; } - copy->code = (ngx_http_script_code_pt) ngx_http_script_copy_len_code; + copy->code = (ngx_http_script_code_pt) (void *) + ngx_http_script_copy_len_code; copy->len = src[i].skip_empty; |
