mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Fixed strict aliasing warnings with old GCC versions.
This commit is contained in:
parent
a2a8bd3bdb
commit
6dc03bf1a4
@ -159,7 +159,7 @@ ngx_http_upstream_init_zone(ngx_shm_zone_t *shm_zone, void *data)
|
||||
|
||||
/* copy peers to shared memory */
|
||||
|
||||
peersp = (ngx_http_upstream_rr_peers_t **) &shpool->data;
|
||||
peersp = (ngx_http_upstream_rr_peers_t **) (void *) &shpool->data;
|
||||
|
||||
for (i = 0; i < umcf->upstreams.nelts; i++) {
|
||||
uscf = uscfp[i];
|
||||
|
@ -155,7 +155,7 @@ ngx_stream_upstream_init_zone(ngx_shm_zone_t *shm_zone, void *data)
|
||||
|
||||
/* copy peers to shared memory */
|
||||
|
||||
peersp = (ngx_stream_upstream_rr_peers_t **) &shpool->data;
|
||||
peersp = (ngx_stream_upstream_rr_peers_t **) (void *) &shpool->data;
|
||||
|
||||
for (i = 0; i < umcf->upstreams.nelts; i++) {
|
||||
uscf = uscfp[i];
|
||||
|
Loading…
Reference in New Issue
Block a user