mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress strict-aliasing warning by x86_64-w64-mingw32-gcc 7.4.0
This commit is contained in:
parent
abe8fb49f0
commit
c688026455
1 changed files with 2 additions and 2 deletions
4
cont.c
4
cont.c
|
@ -1336,8 +1336,8 @@ cont_restore_1(rb_context_t *cont)
|
||||||
/* workaround for x64 SEH */
|
/* workaround for x64 SEH */
|
||||||
jmp_buf buf;
|
jmp_buf buf;
|
||||||
setjmp(buf);
|
setjmp(buf);
|
||||||
((_JUMP_BUFFER*)(&cont->jmpbuf))->Frame =
|
_JUMP_BUFFER *bp = (void*)&cont->jmpbuf;
|
||||||
((_JUMP_BUFFER*)(&buf))->Frame;
|
bp->Frame = ((_JUMP_BUFFER*)((void*)&buf))->Frame;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (cont->machine.stack_src) {
|
if (cont->machine.stack_src) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue