From a26f1eac2255ea4100b25af2f69c8a9ad872bd18 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Tue, 31 Jul 2012 15:10:15 +0300 Subject: [PATCH] IA64: `ent' needed conditionally in Gtables.c ia64/Gtables.c: In function '_ULia64_search_unwind_table': ia64/Gtables.c:258: warning: unused variable 'ent' --- src/ia64/Gtables.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ia64/Gtables.c b/src/ia64/Gtables.c index 5ed72f0a..de9e86f0 100644 --- a/src/ia64/Gtables.c +++ b/src/ia64/Gtables.c @@ -255,8 +255,10 @@ unw_search_ia64_unwind_table (unw_addr_space_t as, unw_word_t ip, unw_word_t addr, hdr_addr, info_addr, info_end_addr, hdr, *wp; const struct ia64_table_entry *e = NULL; unw_word_t handler_offset, segbase = 0; - struct ia64_table_entry ent; int ret, is_local; +#ifndef UNW_LOCAL_ONLY + struct ia64_table_entry ent; +#endif assert ((di->format == UNW_INFO_FORMAT_TABLE || di->format == UNW_INFO_FORMAT_REMOTE_TABLE)