mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-06-30 21:21:45 +02:00
Silence a compiler warning
This commit is contained in:
parent
215afa30b7
commit
fdc534ccb0
|
@ -87,6 +87,7 @@ unw_is_signal_frame (unw_cursor_t *cursor)
|
||||||
PROTECTED int
|
PROTECTED int
|
||||||
unw_handle_signal_frame (unw_cursor_t *cursor)
|
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
|
/* Should not get here because we now use kernel-provided dwarf
|
||||||
information for the signal trampoline and dwarf_step() works.
|
information for the signal trampoline and dwarf_step() works.
|
||||||
Hence dwarf_step() should never call this function. Maybe
|
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_format == X86_64_SCF_LINUX_RT_SIGFRAME);
|
||||||
assert(c->sigcontext_addr == c->dwarf.cfa);
|
assert(c->sigcontext_addr == c->dwarf.cfa);
|
||||||
assert(0);
|
assert(0);
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue