diff options
author | Robin Barker <rmbarker@cpan.org> | 2012-02-09 07:42:15 +0100 |
---|---|---|
committer | Steffen Mueller <smueller@cpan.org> | 2012-02-09 07:42:15 +0100 |
commit | dad95a0a49bcf14c9a514ca59d99fc1e7912f9b1 (patch) | |
tree | 128d4e46e19af75f1028d0a23f0db6beae34bdb0 /gv.c | |
parent | 2129788bab80ab45dda70f265c485e42109c4852 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |