diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-10-13 09:34:36 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-10-13 09:34:36 +0200 |
commit | fbd3923887b40c90e7da7323cd0338f23339d888 (patch) | |
tree | 00f88033c64fee4c20e4ac0e4e6efac8ac1cd9b8 /libgcc/config/riscv/linux-unwind.h | |
parent | 6e5216ec17164b480c780877b47a0df79be3ef61 (diff) | |
download | gcc-fbd3923887b40c90e7da7323cd0338f23339d888.zip gcc-fbd3923887b40c90e7da7323cd0338f23339d888.tar.gz gcc-fbd3923887b40c90e7da7323cd0338f23339d888.tar.bz2 |
riscv: Fix -Wincompatible-pointer-types warning during libgcc build
libgcc/
* config/riscv/linux-unwind.h (riscv_fallback_frame_state): Add
missing cast.
Diffstat (limited to 'libgcc/config/riscv/linux-unwind.h')
-rw-r--r-- | libgcc/config/riscv/linux-unwind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/config/riscv/linux-unwind.h b/libgcc/config/riscv/linux-unwind.h index 931c2f2..e58d0f4 100644 --- a/libgcc/config/riscv/linux-unwind.h +++ b/libgcc/config/riscv/linux-unwind.h @@ -64,7 +64,7 @@ riscv_fallback_frame_state (struct _Unwind_Context *context, return _URC_END_OF_STACK; rt_ = context->cfa; - sc = &rt_->uc.uc_mcontext; + sc = (struct sigcontext *) &rt_->uc.uc_mcontext; new_cfa = (_Unwind_Ptr) sc; fs->regs.cfa_how = CFA_REG_OFFSET; |