summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-12-05 22:50:44 +0200
committerEli Zaretskii <eliz@gnu.org>2016-12-05 22:50:44 +0200
commit66a5abb102ec1d6e4c327632ef235d1eb6433291 (patch)
tree9e894dfb5dcf42869bff94987d7ab5628ea71358 /src/thread.c
parente4deba098e0281538a0e7b04d849989f17e5bcc7 (diff)
downloademacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.tar.gz
emacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.tar.bz2
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)
static int
lisp_mutex_unlock (lisp_mutex_t *mutex)
{
- struct thread_state *self = current_thread;
-
if (mutex->owner != current_thread)
error ("blah");
@@ -160,7 +158,6 @@ lisp_mutex_unlock (lisp_mutex_t *mutex)
static unsigned int
lisp_mutex_unlock_for_wait (lisp_mutex_t *mutex)
{
- struct thread_state *self = current_thread;
unsigned int result = mutex->count;
/* Ensured by condvar code. */
@@ -601,9 +598,6 @@ DEFUN ("thread-yield", Fthread_yield, Sthread_yield, 0, 0, 0,
static Lisp_Object
invoke_thread_function (void)
{
- Lisp_Object iter;
- volatile struct thread_state *self = current_thread;
-
int count = SPECPDL_INDEX ();
Ffuncall (1, &current_thread->function);