From c688026455a3a37b233333aa90bdd4633b3e6a91 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 28 Nov 2019 10:52:33 +0900 Subject: [PATCH] Suppress strict-aliasing warning by x86_64-w64-mingw32-gcc 7.4.0 --- cont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cont.c b/cont.c index 63069b3f7c..87f1fd0157 100644 --- a/cont.c +++ b/cont.c @@ -1336,8 +1336,8 @@ cont_restore_1(rb_context_t *cont) /* 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) {