From 4dea379ad982e946ee2ec561c7554faf34807b72 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Mon, 23 Jan 2017 22:55:07 +0100 Subject: [PATCH] x84_64: It's only 'mcontext_t'. Fixes warning: ``` src/x86_64/Gos-linux.c:141:36: warning: initialization from incompatible pointer type struct mcontext_t *sc_mcontext = &((struct ucontext*)sc)->uc_mcontext; ^ ``` Introduced-in: 29483327bebaf6e0141a9bee8bb99552a63f1583 --- src/x86_64/Gos-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c index d1e98ea5..6f70d3ff 100644 --- a/src/x86_64/Gos-linux.c +++ b/src/x86_64/Gos-linux.c @@ -138,7 +138,7 @@ x86_64_sigreturn (unw_cursor_t *cursor) { struct cursor *c = (struct cursor *) cursor; struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr; - struct mcontext_t *sc_mcontext = &((struct ucontext*)sc)->uc_mcontext; + mcontext_t *sc_mcontext = &((struct ucontext*)sc)->uc_mcontext; /* Copy in saved uc - all preserved regs are at the start of sigcontext */ memcpy(sc_mcontext, &c->uc->uc_mcontext, DWARF_NUM_PRESERVED_REGS * sizeof(unw_word_t));