summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-11-12 15:51:21 +0000
committerDavid Mitchell <davem@iabyn.com>2013-11-13 10:38:40 +0000
commit03acb64848c7cc3a02259a87b82a11a401c46810 (patch)
tree1c3044ed4f9eb34769efadaef28b3cdf76323727 /thread.h
parentc835650ead1b96c706212d7e6d95da86cc9e8fcb (diff)
downloadperl-03acb64848c7cc3a02259a87b82a11a401c46810.tar.gz
silence some compiler warnings
Actually, most of this commit is adding (void) to various function returns where we know its ok to ignore the return value. This doesn't actually silence the -Wunused-result warning (thanks a bundle gcc), but at least it marks our intentions.
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index 15d2665047..de23d75559 100644
--- a/thread.h
+++ b/thread.h
@@ -336,7 +336,7 @@
# define ALLOC_THREAD_KEY \
STMT_START { \
if (pthread_key_create(&PL_thr_key, 0)) { \
- write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \
+ (void)write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \
exit(1); \
} \
} STMT_END