summaryrefslogtreecommitdiff
path: root/util.c
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 /util.c
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 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index b62caf8011..c68bb9035f 100644
--- a/util.c
+++ b/util.c
@@ -1597,7 +1597,7 @@ Perl_croak_no_mem()
dTHX;
/* Can't use PerlIO to write as it allocates memory */
- PerlLIO_write(PerlIO_fileno(Perl_error_log),
+ (void)PerlLIO_write(PerlIO_fileno(Perl_error_log),
PL_no_mem, sizeof(PL_no_mem)-1);
my_exit(1);
}