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 /doio.c | |
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 'doio.c')
-rw-r--r-- | doio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1395,7 +1395,7 @@ S_exec_failed(pTHX_ const char *cmd, int fd, int do_report) Perl_warner(aTHX_ packWARN(WARN_EXEC), "Can't exec \"%s\": %s", cmd, Strerror(e)); if (do_report) { - PerlLIO_write(fd, (void*)&e, sizeof(int)); + (void)PerlLIO_write(fd, (void*)&e, sizeof(int)); PerlLIO_close(fd); } } |