mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-02 04:52:53 +01:00
Annotate potentially unused variable in tests/test-coredump-unwind.c
tests/test-coredump-unwind.c: In function 'handle_sigsegv': test-coredump-unwind.c:216:15: warning: variable 'uc' set but not used [-Wunused-but-set-variable]
This commit is contained in:
parent
7673df21ff
commit
939a5e195e
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,8 @@
|
|||
* libraries can be determined by ldd (at least on linux).
|
||||
*/
|
||||
|
||||
#include "compiler.h"
|
||||
|
||||
#undef _GNU_SOURCE
|
||||
#define _GNU_SOURCE 1
|
||||
#undef __USE_GNU
|
||||
|
@ -205,7 +207,7 @@ static
|
|||
void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
|
||||
{
|
||||
long ip = 0;
|
||||
ucontext_t *uc;
|
||||
ucontext_t *uc UNUSED;
|
||||
|
||||
uc = ucontext;
|
||||
#if defined(__linux__)
|
||||
|
|
Loading…
Reference in a new issue