libunwind-devel
[Top][All Lists]
Advanced

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

[Libunwind-devel] [PATCH 17/35] Workaround volatileness warning in tests


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 17/35] Workaround volatileness warning in tests/ia64-test-setjmp.c
Date: Tue, 18 Sep 2012 16:31:26 +0300

tests/ia64-test-setjmp.c:76: warning: function return types not compatible due 
to 'volatile'
---
 tests/ia64-test-setjmp.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/ia64-test-setjmp.c b/tests/ia64-test-setjmp.c
index be487b6..50eaa01 100644
--- a/tests/ia64-test-setjmp.c
+++ b/tests/ia64-test-setjmp.c
@@ -73,7 +73,8 @@ sighandler (int signal, void *siginfo, void *sigcontext)
 /* Direct call of doit () at the end of doit () would get optimized by GCC to
    a branch.  */
 static void doit (int n);
-static volatile void (*doit_pointer) (int n) = doit;
+typedef void (*doit_type) (int);
+static volatile doit_type doit_pointer = doit;
 
 static void
 doit (int n)
-- 
1.7.9.5




reply via email to

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