summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorRobin Barker <rmbarker@cpan.org>2012-02-09 07:42:15 +0100
committerSteffen Mueller <smueller@cpan.org>2012-02-09 07:42:15 +0100
commitdad95a0a49bcf14c9a514ca59d99fc1e7912f9b1 (patch)
tree128d4e46e19af75f1028d0a23f0db6beae34bdb0 /gv.c
parent2129788bab80ab45dda70f265c485e42109c4852 (diff)
downloadperl-dad95a0a49bcf14c9a514ca59d99fc1e7912f9b1.tar.gz
Silence compiler warnings
Cf. RT #110208. - Remove missing unused variables: op.c, regcomp.c - Silence -Wformat type error: sv.c - Cast first part of (,) expression as (void): gv.c
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index dca0fa276d..a61c34f219 100644
--- a/gv.c
+++ b/gv.c
@@ -318,7 +318,7 @@ Perl_gv_init_pvn(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, U32 flag
const U32 old_type = SvTYPE(gv);
const bool doproto = old_type > SVt_NULL;
char * const proto = (doproto && SvPOK(gv))
- ? (SvIsCOW(gv) && (sv_force_normal((SV *)gv), 0), SvPVX(gv))
+ ? ((void)(SvIsCOW(gv) && (sv_force_normal((SV *)gv), 0)), SvPVX(gv))
: NULL;
const STRLEN protolen = proto ? SvCUR(gv) : 0;
const U32 proto_utf8 = proto ? SvUTF8(gv) : 0;