summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRobin Barker <rmbarker@cpan.org>2011-09-07 22:22:42 +0100
committerFather Chrysostomos <sprout@cpan.org>2011-09-08 08:24:31 -0700
commit14f0f125b45b58bbf2d9e275abf2fef1655f8a3e (patch)
treed1f498a7896c607ac46e1b049fbffa0848aa5bac /toke.c
parentf8ccc5c641d025d213119510fd38619b06273044 (diff)
downloadperl-14f0f125b45b58bbf2d9e275abf2fef1655f8a3e.tar.gz
remove unused variables and assignments
and silences some compiler warnings. I do not understand the code in toke.c but the change aligns the code with other uses of FUN0OP, it has no warnings and does not break any test.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 1bf7e18c86..604934e463 100644
--- a/toke.c
+++ b/toke.c
@@ -6927,8 +6927,7 @@ Perl_yylex(pTHX)
case KEY___FILE__:
FUN0OP(
- pl_yylval.opval = (OP*)newSVOP(OP_CONST, 0,
- newSVpv(CopFILE(PL_curcop),0))
+ (OP*)newSVOP(OP_CONST, 0, newSVpv(CopFILE(PL_curcop),0))
);
case KEY___LINE__: