diff options
author | David Mitchell <davem@iabyn.com> | 2013-11-12 15:51:21 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2013-11-13 10:38:40 +0000 |
commit | 03acb64848c7cc3a02259a87b82a11a401c46810 (patch) | |
tree | 1c3044ed4f9eb34769efadaef28b3cdf76323727 /thread.h | |
parent | c835650ead1b96c706212d7e6d95da86cc9e8fcb (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |