From fdc534ccb05d1e6c0438345d292203343a811701 Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Wed, 28 Apr 2010 16:38:27 -0700 Subject: [PATCH] Silence a compiler warning --- src/x86_64/Gos-linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c index e2929beb..b7f832ca 100644 --- a/src/x86_64/Gos-linux.c +++ b/src/x86_64/Gos-linux.c @@ -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; }