summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-12-28 09:30:31 +0000
committerNicholas Clark <nick@ccl4.org>2010-12-28 10:03:48 +0000
commit7716c5c554409ba94e8dd56116adbde29e4d5b6c (patch)
tree2a9e58bd43609d4da9d6c26ee3d28fdd40b964f3 /doio.c
parentb42db14f8a2947a46ffdc12c9552476f4a19f2ba (diff)
downloadperl-7716c5c554409ba94e8dd56116adbde29e4d5b6c.tar.gz
As report_wrongway_fh() checks ckWARN(WARN_IO) internally, don't duplicate this.
This trades reduced code size for an extra function call in the error path with warnings disabled. (And removes a duplicated check for the case of taking the error path *with* warnings enabled.)
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 0518baedf6..9877eba210 100644
--- a/doio.c
+++ b/doio.c
@@ -996,7 +996,7 @@ Perl_do_eof(pTHX_ GV *gv)
if (!io)
return TRUE;
- else if ((IoTYPE(io) == IoTYPE_WRONLY) && ckWARN(WARN_IO))
+ else if (IoTYPE(io) == IoTYPE_WRONLY)
report_wrongway_fh(gv, '>');
while (IoIFP(io)) {