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 mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel