summaryrefslogtreecommitdiff
path: root/libgcc/unwind-seh.c
diff options
context:
space:
mode:
authorJonathan Yong <10walls@gmail.com>2017-03-02 11:00:28 +0000
committerJonathan Yong <jyong@gcc.gnu.org>2017-03-02 11:00:28 +0000
commit126437c5dad88fb2cc6172f09c556ff09844b649 (patch)
tree6c57a3a2135243282baaed4fdd23be2deee85c4d /libgcc/unwind-seh.c
parentd5a216fa21f6c67e75a91b7063d1767cff00138b (diff)
downloadgcc-126437c5dad88fb2cc6172f09c556ff09844b649.tar.gz
unwind-seh.c: Suppress warnings for RtlUnwindEx calls.
* unwind-seh.c: Suppress warnings for RtlUnwindEx calls. From-SVN: r245834
Diffstat (limited to 'libgcc/unwind-seh.c')
-rw-r--r--libgcc/unwind-seh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgcc/unwind-seh.c b/libgcc/unwind-seh.c
index 37326c5ba51..91edc1a61da 100644
--- a/libgcc/unwind-seh.c
+++ b/libgcc/unwind-seh.c
@@ -221,7 +221,7 @@ _GCC_specific_handler (PEXCEPTION_RECORD ms_exc, void *this_frame,
test is that we're the target frame. */
if (ms_exc->ExceptionInformation[1] == (_Unwind_Ptr) this_frame)
{
- RtlUnwindEx (this_frame, ms_exc->ExceptionInformation[2],
+ RtlUnwindEx (this_frame, (PVOID) ms_exc->ExceptionInformation[2],
ms_exc, gcc_exc, ms_orig_context,
ms_disp->HistoryTable);
abort ();
@@ -313,7 +313,7 @@ _GCC_specific_handler (PEXCEPTION_RECORD ms_exc, void *this_frame,
ms_exc->ExceptionInformation[3] = gcc_context.reg[1];
/* Begin phase 2. Perform the unwinding. */
- RtlUnwindEx (this_frame, gcc_context.ra, ms_exc,
+ RtlUnwindEx (this_frame, (PVOID)gcc_context.ra, ms_exc,
(PVOID)gcc_context.reg[0], ms_orig_context,
ms_disp->HistoryTable);
}
@@ -365,7 +365,7 @@ _Unwind_Resume (struct _Unwind_Exception *gcc_exc)
ms_context.ContextFlags = CONTEXT_ALL;
RtlCaptureContext (&ms_context);
- RtlUnwindEx ((void *) gcc_exc->private_[1], gcc_exc->private_[2],
+ RtlUnwindEx ((void *) gcc_exc->private_[1], (PVOID)gcc_exc->private_[2],
&ms_exc, gcc_exc, &ms_context, &ms_history);
/* Is RtlUnwindEx declared noreturn? */