comparison src/stream/ngx_stream_upstream_zone_module.c @ 6214:341e4303d25b

Fixed strict aliasing warnings with old GCC versions.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 16 Jul 2015 14:20:48 +0300
parents 311d232ad803
children 2f41d383c9c7
comparison
equal deleted inserted replaced
6213:7cad953621d4 6214:341e4303d25b
153 &shm_zone->shm.name); 153 &shm_zone->shm.name);
154 154
155 155
156 /* copy peers to shared memory */ 156 /* copy peers to shared memory */
157 157
158 peersp = (ngx_stream_upstream_rr_peers_t **) &shpool->data; 158 peersp = (ngx_stream_upstream_rr_peers_t **) (void *) &shpool->data;
159 159
160 for (i = 0; i < umcf->upstreams.nelts; i++) { 160 for (i = 0; i < umcf->upstreams.nelts; i++) {
161 uscf = uscfp[i]; 161 uscf = uscfp[i];
162 162
163 if (uscf->shm_zone != shm_zone) { 163 if (uscf->shm_zone != shm_zone) {