diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-12-28 09:30:31 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-12-28 10:03:48 +0000 |
commit | 7716c5c554409ba94e8dd56116adbde29e4d5b6c (patch) | |
tree | 2a9e58bd43609d4da9d6c26ee3d28fdd40b964f3 /doio.c | |
parent | b42db14f8a2947a46ffdc12c9552476f4a19f2ba (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |