aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-05 22:50:44 +0200
committerEli Zaretskii2016-12-05 22:50:44 +0200
commit66a5abb102ec1d6e4c327632ef235d1eb6433291 (patch)
tree9e894dfb5dcf42869bff94987d7ab5628ea71358 /src/thread.c
parente4deba098e0281538a0e7b04d849989f17e5bcc7 (diff)
downloademacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.tar.gz
emacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.zip
Fix compilation problems.
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/thread.c b/src/thread.c
index f5b04e4b231..11d55a5caef 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -143,8 +143,6 @@ lisp_mutex_lock (lisp_mutex_t *mutex, int new_count)
143static int 143static int
144lisp_mutex_unlock (lisp_mutex_t *mutex) 144lisp_mutex_unlock (lisp_mutex_t *mutex)
145{ 145{
146 struct thread_state *self = current_thread;
147
148 if (mutex->owner != current_thread) 146 if (mutex->owner != current_thread)
149 error ("blah"); 147 error ("blah");
150 148
@@ -160,7 +158,6 @@ lisp_mutex_unlock (lisp_mutex_t *mutex)
160static unsigned int 158static unsigned int
161lisp_mutex_unlock_for_wait (lisp_mutex_t *mutex) 159lisp_mutex_unlock_for_wait (lisp_mutex_t *mutex)
162{ 160{
163 struct thread_state *self = current_thread;
164 unsigned int result = mutex->count; 161 unsigned int result = mutex->count;
165 162
166 /* Ensured by condvar code. */ 163 /* Ensured by condvar code. */
@@ -601,9 +598,6 @@ DEFUN ("thread-yield", Fthread_yield, Sthread_yield, 0, 0, 0,
601static Lisp_Object 598static Lisp_Object
602invoke_thread_function (void) 599invoke_thread_function (void)
603{ 600{
604 Lisp_Object iter;
605 volatile struct thread_state *self = current_thread;
606
607 int count = SPECPDL_INDEX (); 601 int count = SPECPDL_INDEX ();
608 602
609 Ffuncall (1, &current_thread->function); 603 Ffuncall (1, &current_thread->function);