mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-25 16:47: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:
parent
d3fd3dc3ca
commit
68b20804e4
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ void die_out_of_memory(void)
|
||||||
static
|
static
|
||||||
void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
|
void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
|
||||||
{
|
{
|
||||||
long ip;
|
long ip = 0;
|
||||||
ucontext_t *uc;
|
ucontext_t *uc;
|
||||||
|
|
||||||
uc = ucontext;
|
uc = ucontext;
|
||||||
|
|
Loading…
Reference in a new issue