summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/thread.h b/thread.h
index aa3c86a2be..7ff71fad2a 100644
--- a/thread.h
+++ b/thread.h
@@ -338,8 +338,7 @@
#ifndef ALLOC_THREAD_KEY
# define ALLOC_THREAD_KEY \
STMT_START { \
- int _eC_; \
- if ((_eC_ = pthread_key_create(&PL_thr_key, 0))) { \
+ if (pthread_key_create(&PL_thr_key, 0)) { \
write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \
exit(1); \
} \