From e79ff763057ef7da9fc41436130308b888c16382 Mon Sep 17 00:00:00 2001 From: torben Date: Tue, 15 Mar 2011 13:10:34 +0000 Subject: [PATCH] [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 --- libjack/thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)