summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-12 11:04:43 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:06:07 +0300
commit23fdda6a28d31abfcda42567cc455bd46a4fc0d0 (patch)
tree5e334e66778facce13836b405bb3659b2e0795e2
parent074e328d4636c7cea4af6e2910953b49929ed946 (diff)
downloadlibunwind-23fdda6a28d31abfcda42567cc455bd46a4fc0d0.tar.gz
Workaround volatileness warning in tests/ia64-test-setjmp.c
tests/ia64-test-setjmp.c:76: warning: function return types not compatible due to 'volatile'
-rw-r--r--tests/ia64-test-setjmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ia64-test-setjmp.c b/tests/ia64-test-setjmp.c
index be487b66..50eaa01b 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)