libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 23/27] Avoid -Wunused-value warning in tests/Gt


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 23/27] Avoid -Wunused-value warning in tests/Gtest-exc.c
Date: Wed, 22 Aug 2012 14:28:49 +0300

Gtest-exc.c: In function 'a':
Gtest-exc.c:100:15: warning: value computed is not used [-Wunused-value]
---
 tests/Gtest-exc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Gtest-exc.c b/tests/Gtest-exc.c
index 44b837d..1170bdd 100644
--- a/tests/Gtest-exc.c
+++ b/tests/Gtest-exc.c
@@ -97,7 +97,7 @@ a (int n)
            n, &stack, (unsigned long) get_bsp ());
 
   if (n > 0)
-    a (n - 1) + 1;
+    a (n - 1);
   else
     b (16);
 
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]