Skip to content

Commit

Permalink
Fixed strict aliasing warnings with old GCC versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdocguard committed Jul 16, 2015
1 parent a2a8bd3 commit 6dc03bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http/modules/ngx_http_upstream_zone_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/stream/ngx_stream_upstream_zone_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 6dc03bf

Please sign in to comment.