libunwind-devel
[Top][All Lists]
Advanced

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

[Libunwind-devel] [PATCH 21/57] Annotate potentially unused variable in


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 21/57] Annotate potentially unused variable in tests/Gtest-trace.c
Date: Fri, 21 Sep 2012 14:11:22 +0300

tests/Gtest-trace.c: In function 'sighandler':
tests/Gtest-trace.c:179:15: warning: unused variable 'uc' [-Wunused-variable]
---
 tests/Gtest-trace.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c
index 5145e65..9d43ce2 100644
--- a/tests/Gtest-trace.c
+++ b/tests/Gtest-trace.c
@@ -24,6 +24,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.  */
 # include "config.h"
 #endif
 
+#include "compiler.h"
+
 #include <errno.h>
 #if HAVE_EXECINFO_H
 # include <execinfo.h>
@@ -176,9 +178,11 @@ bar (long v)
 void
 sighandler (int signal, void *siginfo __attribute__((unused)), void *context)
 {
-  ucontext_t *uc = context;
+  ucontext_t *uc UNUSED;
   int sp;
 
+  uc = context;
+
   if (verbose)
     {
       printf ("sighandler: got signal %d, sp=%p", signal, &sp);
-- 
1.7.9.5




reply via email to

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