From 68b20804e4e7098bd81bc42e2efd733b7cec8374 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Wed, 12 Sep 2012 10:13:42 +0300 Subject: [PATCH] Clear out `ip' to avoid -Wuninitialized warning in tests/test-coredump-unwind.c 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 841c5e1d..5a5102b4 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;