summaryrefslogtreecommitdiff
path: root/libjack/thread.c
diff options
context:
space:
mode:
authortorben <torben@0c269be4-1314-0410-8aa9-9f06e86f4224>2011-03-15 13:10:34 +0000
committertorben <torben@0c269be4-1314-0410-8aa9-9f06e86f4224>2011-03-15 13:10:34 +0000
commite79ff763057ef7da9fc41436130308b888c16382 (patch)
treea3def22a64b456e1647616fe3835b40bd6bfe22f /libjack/thread.c
parent54e26828195b1063838590393bbc9db536ee0fac (diff)
downloadjack1-e79ff763057ef7da9fc41436130308b888c16382.tar.gz
[libjack] fix warning about volatile return type, by typedef
the previous commit was not completely correct, and resulted in a warning. this makes the volatile keyword apply to the function pointer and not the void return value. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4198 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'libjack/thread.c')
-rw-r--r--libjack/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjack/thread.c b/libjack/thread.c
index 6ad18a2..61dbc08 100644
--- a/libjack/thread.c
+++ b/libjack/thread.c
@@ -111,7 +111,8 @@ jack_thread_touch_stack()
}
}
-static volatile void (* ptr_jack_thread_touch_stack )() = jack_thread_touch_stack;
+typedef void (* stack_touch_t)();
+static volatile stack_touch_t ptr_jack_thread_touch_stack = jack_thread_touch_stack;
static void*
jack_thread_proxy (void* varg)