diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-12 10:13:42 +0300 |
---|---|---|
committer | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-28 14:06:07 +0300 |
commit | 68b20804e4e7098bd81bc42e2efd733b7cec8374 (patch) | |
tree | ca40bd04ffa724a44090553ad20f1f36d2df2d47 | |
parent | d3fd3dc3ca842a7ec2f796fc84117a71738209b5 (diff) | |
download | libunwind-68b20804e4e7098bd81bc42e2efd733b7cec8374.tar.gz |
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]
-rw-r--r-- | tests/test-coredump-unwind.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |