summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index de23d75559..cd5563511d 100644
--- a/thread.h
+++ b/thread.h
@@ -336,7 +336,9 @@
# define ALLOC_THREAD_KEY \
STMT_START { \
if (pthread_key_create(&PL_thr_key, 0)) { \
- (void)write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \
+ int rc; \
+ rc = write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \
+ PERL_UNUSED_VAR(rc); \
exit(1); \
} \
} STMT_END