[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 18/35] Annotate potentially unused variable in
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 18/35] Annotate potentially unused variable in tests/Gtest-bt.c |
Date: |
Tue, 18 Sep 2012 16:31:27 +0300 |
tests/Gtest-bt.c: In function 'sighandler':
tests/Gtest-bt.c:158:15: warning: unused variable 'uc' [-Wunused-variable]
---
tests/Gtest-bt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/Gtest-bt.c b/tests/Gtest-bt.c
index 68eba92..fa28384 100644
--- a/tests/Gtest-bt.c
+++ b/tests/Gtest-bt.c
@@ -164,9 +164,11 @@ bar (long v)
void
sighandler (int signal, void *siginfo __attribute__((unused)), void *context)
{
- ucontext_t *uc = context;
+ ucontext_t *uc __attribute__((unused));
int sp;
+ uc = context;
+
if (verbose)
{
printf ("sighandler: got signal %d, sp=%p", signal, &sp);
--
1.7.9.5
- [Libunwind-devel] [PATCH 20/35] Annotate potentially unused variable in tests/test-coredump-unwind.c, (continued)
[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 <=
[Libunwind-devel] [PATCH 29/35] Nuke HAVE_BACKTRACE, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 25/35] Rename `rs-race' to `Lrs-race', Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 26/35] Call `unw_backtrace()' explicitly in test-flush-cache.c, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 22/35] Rename `test-varargs' to `Ltest-varargs', Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 27/35] Roll `test-nocalloc' into `Ltest-nocalloc.c', Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 32/35] Enable coredump library build on ARM by default, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 30/35] Stop including `memory.h', Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 34/35] ppc32: include `libunwind_i.h' for UNUSED in ucontext_i.h, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 33/35] SuperH port, Tommi Rantala, 2012/09/18