summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-10 19:39:01 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-10 19:39:01 +0000
commit5a5094bd2bc239cc8cbe175655a49a3401f3ed50 (patch)
tree9b6dc0b3f0d2e4d96ea0a1027b1d6f98c869004e /perl.c
parente02b91128a20d30213f621b1a24c2fecc2033e4a (diff)
downloadperl-5a5094bd2bc239cc8cbe175655a49a3401f3ed50.tar.gz
Silence the g++ warnings "right-hand operand of comma has no effect"
p4raw-id: //depot/perl@30900
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl.c b/perl.c
index c59f8e9b3d..c3f9e88fdb 100644
--- a/perl.c
+++ b/perl.c
@@ -3554,14 +3554,14 @@ S_init_main_stash(pTHX)
SvREADONLY_on(gv);
PL_incgv = gv_HVadd(gv_AVadd(gv_fetchpvs("INC", GV_ADD|GV_NOTQUAL,
SVt_PVAV)));
- SvREFCNT_inc_simple(PL_incgv); /* Don't allow it to be freed */
+ SvREFCNT_inc_simple_void(PL_incgv); /* Don't allow it to be freed */
GvMULTI_on(PL_incgv);
PL_hintgv = gv_fetchpvs("\010", GV_ADD|GV_NOTQUAL, SVt_PV); /* ^H */
GvMULTI_on(PL_hintgv);
PL_defgv = gv_fetchpvs("_", GV_ADD|GV_NOTQUAL, SVt_PVAV);
- SvREFCNT_inc_simple(PL_defgv);
+ SvREFCNT_inc_simple_void(PL_defgv);
PL_errgv = gv_HVadd(gv_fetchpvs("@", GV_ADD|GV_NOTQUAL, SVt_PV));
- SvREFCNT_inc_simple(PL_errgv);
+ SvREFCNT_inc_simple_void(PL_errgv);
GvMULTI_on(PL_errgv);
PL_replgv = gv_fetchpvs("\022", GV_ADD|GV_NOTQUAL, SVt_PV); /* ^R */
GvMULTI_on(PL_replgv);