mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 23:47:39 +01:00
Silence a compiler warning
This commit is contained in:
parent
215afa30b7
commit
fdc534ccb0
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,7 @@ unw_is_signal_frame (unw_cursor_t *cursor)
|
|||
PROTECTED int
|
||||
unw_handle_signal_frame (unw_cursor_t *cursor)
|
||||
{
|
||||
#if UNW_DEBUG /* To silence compiler warnings */
|
||||
/* Should not get here because we now use kernel-provided dwarf
|
||||
information for the signal trampoline and dwarf_step() works.
|
||||
Hence dwarf_step() should never call this function. Maybe
|
||||
|
@ -98,6 +99,7 @@ unw_handle_signal_frame (unw_cursor_t *cursor)
|
|||
assert(c->sigcontext_format == X86_64_SCF_LINUX_RT_SIGFRAME);
|
||||
assert(c->sigcontext_addr == c->dwarf.cfa);
|
||||
assert(0);
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue