Hello,

a trivial patch that fixes a compiler warning.


Cheers,
Giuseppe


>From cb0585292395ad646e5e5f84add189f8e9bc3003 Mon Sep 17 00:00:00 2001
From: Giuseppe Scrivano <[email protected]>
Date: Sat, 10 Apr 2010 16:20:31 +0200
Subject: [PATCH] Reduce scope of the `eh_frame_end' local variable

---
 src/ptrace/_UPT_find_proc_info.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/ptrace/_UPT_find_proc_info.c b/src/ptrace/_UPT_find_proc_info.c
index b9ef5ed..fedda63 100644
--- a/src/ptrace/_UPT_find_proc_info.c
+++ b/src/ptrace/_UPT_find_proc_info.c
@@ -168,7 +168,7 @@ _UPTi_find_unwind_table (struct UPT_info *ui, unw_addr_space_t as,
 			 char *path, unw_word_t segbase, unw_word_t mapoff)
 {
   Elf_W(Phdr) *phdr, *ptxt = NULL, *peh_hdr = NULL, *pdyn = NULL;
-  unw_word_t addr, eh_frame_start, eh_frame_end, fde_count, load_base;
+  unw_word_t addr, eh_frame_start, fde_count, load_base;
   unw_word_t max_load_addr = 0;
   struct dwarf_eh_frame_hdr *hdr;
   unw_proc_info_t pi;
@@ -268,6 +268,8 @@ _UPTi_find_unwind_table (struct UPT_info *ui, unw_addr_space_t as,
 #if 1
       abort ();
 #else
+      unw_word_t eh_frame_end;
+
       /* If there is no search table or it has an unsupported
 	 encoding, fall back on linear search.  */
       if (hdr->table_enc == DW_EH_PE_omit)
-- 
1.7.0

_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to