summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-12 10:21:50 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:06:07 +0300
commit939a5e195e98c09628aeb635626873ee2f919fa4 (patch)
tree7932d6c8354720c34b62a5ef5941c1f56f88f5c6
parent7673df21ffea216bcdee9efc551cfc4462ea35e9 (diff)
downloadlibunwind-939a5e195e98c09628aeb635626873ee2f919fa4.tar.gz
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]
-rw-r--r--tests/test-coredump-unwind.c4
1 files changed, 3 insertions, 1 deletions
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__)