# HG changeset patch # User Ruslan Ermilov # Date 1437045648 -10800 # Node ID 341e4303d25be159d4773b819d0ec055ba711afb # Parent 7cad953621d4a0c9cf10d2174c119f3f2ca2c449 Fixed strict aliasing warnings with old GCC versions. diff -r 7cad953621d4 -r 341e4303d25b src/http/modules/ngx_http_upstream_zone_module.c --- a/src/http/modules/ngx_http_upstream_zone_module.c Wed Jul 15 20:43:41 2015 +0100 +++ b/src/http/modules/ngx_http_upstream_zone_module.c Thu Jul 16 14:20:48 2015 +0300 @@ -159,7 +159,7 @@ /* 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]; diff -r 7cad953621d4 -r 341e4303d25b src/stream/ngx_stream_upstream_zone_module.c --- a/src/stream/ngx_stream_upstream_zone_module.c Wed Jul 15 20:43:41 2015 +0100 +++ b/src/stream/ngx_stream_upstream_zone_module.c Thu Jul 16 14:20:48 2015 +0300 @@ -155,7 +155,7 @@ /* 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];