mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-03-09 10:00:09 +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).
|
* libraries can be determined by ldd (at least on linux).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "compiler.h"
|
||||||
|
|
||||||
#undef _GNU_SOURCE
|
#undef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE 1
|
#define _GNU_SOURCE 1
|
||||||
#undef __USE_GNU
|
#undef __USE_GNU
|
||||||
|
@ -205,7 +207,7 @@ static
|
||||||
void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
|
void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
|
||||||
{
|
{
|
||||||
long ip = 0;
|
long ip = 0;
|
||||||
ucontext_t *uc;
|
ucontext_t *uc UNUSED;
|
||||||
|
|
||||||
uc = ucontext;
|
uc = ucontext;
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
|
|
Loading…
Add table
Reference in a new issue