Mercurial > hg > nginx
diff src/http/modules/ngx_http_proxy_module.c @ 9312:098019656024
Changed script length code casts to work with -Wpedantic.
Script length code casts though "void *", as introduced in
7271:9e25a5380a21 to silence -Wcast-function-type warnings, result
in "ISO C forbids conversion of function pointer to object pointer type"
warnings with -Wpedantic. Fix is to cast though uintptr_t instead.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 07 Aug 2024 03:56:38 +0300 |
parents | 388a801e9bb9 |
children |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -4047,7 +4047,7 @@ ngx_http_proxy_init_headers(ngx_conf_t * return NGX_ERROR; } - copy->code = (ngx_http_script_code_pt) (void *) + copy->code = (ngx_http_script_code_pt) (uintptr_t) ngx_http_script_copy_len_code; copy->len = src[i].key.len;