[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 20/35] Annotate potentially unused variable in
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 20/35] Annotate potentially unused variable in tests/test-coredump-unwind.c |
Date: |
Tue, 18 Sep 2012 16:31:29 +0300 |
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-coredump-unwind.c b/tests/test-coredump-unwind.c
index 5a5102b..13b45c3 100644
--- a/tests/test-coredump-unwind.c
+++ b/tests/test-coredump-unwind.c
@@ -205,7 +205,7 @@ static
void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
{
long ip = 0;
- ucontext_t *uc;
+ ucontext_t *uc __attribute__((unused));
uc = ucontext;
#if defined(__linux__)
--
1.7.9.5
- [Libunwind-devel] [PATCH 15/35] Clear out `ip' to avoid -Wuninitialized warning in tests/test-coredump-unwind.c, (continued)
- [Libunwind-devel] [PATCH 15/35] Clear out `ip' to avoid -Wuninitialized warning in tests/test-coredump-unwind.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 07/35] Use __sync builtin atomics on all architectures if available, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 13/35] HPPA: kludge out unused variable in unw_get_save_loc() stub, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 08/35] Apply UNW_ALIGN more in src/mi/mempool.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 12/35] HPPA: properly check dwarf_get() return value in unw_step(), Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 17/35] Workaround volatileness warning in tests/ia64-test-setjmp.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 14/35] Default to non-verbose mode in Ltest-cxx-exceptions, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 16/35] Avoid -Wunused-value warning in tests/Gia64-test-stack.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 20/35] Annotate potentially unused variable in tests/test-coredump-unwind.c,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 21/35] Drop `optimize' attribute in tests/test-varargs.c, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 23/35] Remove unneeded `config.h' inclusion in Gtest-nomalloc, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 24/35] Cleanup dynamically allocated memory before exit in tests, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 19/35] Annotate potentially unused variable in tests/Gtest-trace.c, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 18/35] Annotate potentially unused variable in tests/Gtest-bt.c, Tommi Rantala, 2012/09/18