summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-11 07:39:21 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-11 07:39:21 +0000
commitdbdce04c0d799286b0e4da51c403118fec194d47 (patch)
tree0527a5cd4ab3f9da60215bd16c8d68f1503aed16 /gv.c
parent000de214817b36bd653733feb0ffc83727a695af (diff)
downloadperl-dbdce04c0d799286b0e4da51c403118fec194d47.tar.gz
Work round what appears to be a bug in Sun C++ 5.8 2005/10/13
If we just cast GvSVn(gv) to void, it ignores evaluating it for its side effect. p4raw-id: //depot/perl@30903
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index f48ef9855c..cbe521bb8d 100644
--- a/gv.c
+++ b/gv.c
@@ -291,7 +291,11 @@ S_gv_init_sv(pTHX_ GV *gv, I32 sv_type)
case SVt_PVGV:
break;
default:
- (void)GvSVn(gv);
+ if(GvSVn(gv)) {
+ /* Work round what appears to be a bug in Sun C++ 5.8 2005/10/13
+ If we just cast GvSVn(gv) to void, it ignores evaluating it for
+ its side effect */
+ }
#endif
}
}