mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-09 10:53:43 +01:00
Workaround volatileness warning in tests/ia64-test-setjmp.c
tests/ia64-test-setjmp.c:76: warning: function return types not compatible due to 'volatile'
This commit is contained in:
parent
074e328d46
commit
23fdda6a28
1 changed files with 2 additions and 1 deletions
|
@ -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
|
/* Direct call of doit () at the end of doit () would get optimized by GCC to
|
||||||
a branch. */
|
a branch. */
|
||||||
static void doit (int n);
|
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
|
static void
|
||||||
doit (int n)
|
doit (int n)
|
||||||
|
|
Loading…
Reference in a new issue