comparison src/http/modules/ngx_http_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 1eb753aa8e5e
comparison
equal deleted inserted replaced
6213:7cad953621d4 6214:341e4303d25b
157 &shm_zone->shm.name); 157 &shm_zone->shm.name);
158 158
159 159
160 /* copy peers to shared memory */ 160 /* copy peers to shared memory */
161 161
162 peersp = (ngx_http_upstream_rr_peers_t **) &shpool->data; 162 peersp = (ngx_http_upstream_rr_peers_t **) (void *) &shpool->data;
163 163
164 for (i = 0; i < umcf->upstreams.nelts; i++) { 164 for (i = 0; i < umcf->upstreams.nelts; i++) {
165 uscf = uscfp[i]; 165 uscf = uscfp[i];
166 166
167 if (uscf->shm_zone != shm_zone) { 167 if (uscf->shm_zone != shm_zone) {