summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-08-26 08:53:26 -0600
committerTom Tromey <tromey@redhat.com>2013-08-26 08:53:26 -0600
commitc160274456eb7bb09776b888f5274933f2ec2399 (patch)
treea39d4ad11c276405de9cab165c30956c511c2527 /src/thread.c
parent2ee7755c8d35aba1d598c9baa910bd5af228f095 (diff)
downloademacs-c160274456eb7bb09776b888f5274933f2ec2399.tar.gz
emacs-c160274456eb7bb09776b888f5274933f2ec2399.tar.bz2
emacs-c160274456eb7bb09776b888f5274933f2ec2399.zip
use record_unwind_protect_void, avoid warning
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/thread.c b/src/thread.c
index 59845b6524f..ae2212e697d 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -220,11 +220,10 @@ mutex_lock_callback (void *arg)
post_acquire_global_lock (self);
}
-static Lisp_Object
-do_unwind_mutex_lock (Lisp_Object ignore)
+static void
+do_unwind_mutex_lock (void)
{
current_thread->event_object = Qnil;
- return Qnil;
}
DEFUN ("mutex-lock", Fmutex_lock, Smutex_lock, 1, 1, 0,
@@ -244,7 +243,7 @@ Note that calls to `mutex-lock' and `mutex-unlock' must be paired. */)
lmutex = XMUTEX (mutex);
current_thread->event_object = mutex;
- record_unwind_protect (do_unwind_mutex_lock, Qnil);
+ record_unwind_protect_void (do_unwind_mutex_lock);
flush_stack_call_func (mutex_lock_callback, lmutex);
return unbind_to (count, Qnil);
}