libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 17/57] Clear out `ip' to avoid -Wuninitialized


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 17/57] Clear out `ip' to avoid -Wuninitialized warning in tests/test-coredump-unwind.c
Date: Fri, 21 Sep 2012 14:11:18 +0300

This one is for architectures that we have not specifically added
support for in `tests/test-coredump-unwind.c'.

tests/test-coredump-unwind.c: In function 'handle_sigsegv':
test-coredump-unwind.c:238:10: warning: 'ip' is used uninitialized in this 
function [-Wuninitialized]
---
 tests/test-coredump-unwind.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-coredump-unwind.c b/tests/test-coredump-unwind.c
index 841c5e1..5a5102b 100644
--- a/tests/test-coredump-unwind.c
+++ b/tests/test-coredump-unwind.c
@@ -204,7 +204,7 @@ void die_out_of_memory(void)
 static
 void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
 {
-  long ip;
+  long ip = 0;
   ucontext_t *uc;
 
   uc = ucontext;
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]