ruby-changes:58932
From: Nobuyoshi <ko1@a...>
Date: Thu, 28 Nov 2019 10:54:16 +0900 (JST)
Subject: [ruby-changes:58932] c688026455 (master): Suppress strict-aliasing warning by x86_64-w64-mingw32-gcc 7.4.0
https://git.ruby-lang.org/ruby.git/commit/?id=c688026455 From c688026455a3a37b233333aa90bdd4633b3e6a91 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 28 Nov 2019 10:52:33 +0900 Subject: Suppress strict-aliasing warning by x86_64-w64-mingw32-gcc 7.4.0 diff --git a/cont.c b/cont.c index 63069b3..87f1fd0 100644 --- a/cont.c +++ b/cont.c @@ -1336,8 +1336,8 @@ cont_restore_1(rb_context_t *cont) https://github.com/ruby/ruby/blob/trunk/cont.c#L1336 /* workaround for x64 SEH */ jmp_buf buf; setjmp(buf); - ((_JUMP_BUFFER*)(&cont->jmpbuf))->Frame = - ((_JUMP_BUFFER*)(&buf))->Frame; + _JUMP_BUFFER *bp = (void*)&cont->jmpbuf; + bp->Frame = ((_JUMP_BUFFER*)((void*)&buf))->Frame; } #endif if (cont->machine.stack_src) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/