From 939a5e195e98c09628aeb635626873ee2f919fa4 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Wed, 12 Sep 2012 10:21:50 +0300 Subject: [PATCH] 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] --- tests/test-coredump-unwind.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-coredump-unwind.c b/tests/test-coredump-unwind.c index 5a5102b4..fc784d45 100644 --- a/tests/test-coredump-unwind.c +++ b/tests/test-coredump-unwind.c @@ -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__)