1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 07:37:38 +01:00

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]
This commit is contained in:
Tommi Rantala 2012-09-12 10:13:42 +03:00
parent d3fd3dc3ca
commit 68b20804e4

View file

@ -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;