Welcome! Log In Create A New Profile

Advanced

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

Alexander Borisov
October 29, 2019 08:26AM
details: https://hg.nginx.org/njs/rev/fedc4ad583c8
branches:
changeset: 1205:fedc4ad583c8
user: Alexander Borisov <alexander.borisov@nginx.com>
date: Tue Oct 29 15:24:58 2019 +0300
description:
Fixed strict aliasing warnings with old GCC versions.

diffstat:

src/njs.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3c15734aaeb8 -r fedc4ad583c8 src/njs.h
--- a/src/njs.h Mon Oct 28 16:50:20 2019 +0300
+++ b/src/njs.h Tue Oct 29 15:24:58 2019 +0300
@@ -51,7 +51,7 @@ extern const njs_value_t njs_
: (njs_value_t *) &njs_value_undefined)

#define njs_value_assign(dst, src) \
- *((njs_opaque_value_t *) dst) = *((njs_opaque_value_t *) src)
+ memcpy(dst, src, sizeof(njs_opaque_value_t))

#define njs_value_arg(val) ((njs_value_t *) val)

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

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

Alexander Borisov 60 October 29, 2019 08:26AM



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

Online Users

Guests: 96
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready