summaryrefslogtreecommitdiff
path: root/src/Threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Threads.c')
-rw-r--r--src/Threads.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Threads.c b/src/Threads.c
index ee19c2e..14954d0 100644
--- a/src/Threads.c
+++ b/src/Threads.c
@@ -199,8 +199,9 @@ AppUnlock(XtAppContext app)
xmutex_unlock(app_lock->mutex);
#else
xthread_t self;
- (void)self;
self = xthread_self();
+ (void)self;
+
xmutex_lock(app_lock->mutex);
assert(xthread_equal(app_lock->holder, self));
if (app_lock->level != 0) {