diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-11 07:39:21 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-11 07:39:21 +0000 |
commit | dbdce04c0d799286b0e4da51c403118fec194d47 (patch) | |
tree | 0527a5cd4ab3f9da60215bd16c8d68f1503aed16 /gv.c | |
parent | 000de214817b36bd653733feb0ffc83727a695af (diff) | |
download | perl-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 } } |