1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-25 14:12:37 +02: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:
Tommi Rantala 2012-09-12 10:21:50 +03:00
parent 7673df21ff
commit 939a5e195e

View file

@ -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__)