Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed strict aliasing warnings with old GCC versions.

Ruslan Ermilov
July 20, 2015 08:26AM
details: http://hg.nginx.org/nginx/rev/341e4303d25b
branches:
changeset: 6214:341e4303d25b
user: Ruslan Ermilov <ru@nginx.com>
date: Thu Jul 16 14:20:48 2015 +0300
description:
Fixed strict aliasing warnings with old GCC versions.

diffstat:

src/http/modules/ngx_http_upstream_zone_module.c | 2 +-
src/stream/ngx_stream_upstream_zone_module.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

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 @@ ngx_http_upstream_init_zone(ngx_shm_zone

/* 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 @@ ngx_stream_upstream_init_zone(ngx_shm_zo

/* 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];

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fixed strict aliasing warnings with old GCC versions.

Ruslan Ermilov 764 July 20, 2015 08:26AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready