diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-12 10:59:03 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-12 10:59:03 +0000 |
commit | a73e8557ffb104ab62198e9838714843724d84e5 (patch) | |
tree | 5608940e6443b9f13c3b998cc9a693fb3984450f | |
parent | baaa5b5cf702861755b0f4ccba5e5e3aba104fae (diff) | |
download | perl-a73e8557ffb104ab62198e9838714843724d84e5.tar.gz |
Another finding by IRIX cc: non-void function
sv_cat_decode() should return a value.
p4raw-id: //depot/perl@18954
-rw-r--r-- | sv.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -11499,8 +11499,8 @@ bool Perl_sv_cat_decode(pTHX_ SV *dsv, SV *encoding, SV *ssv, int *offset, char *tstr, int tlen) { + bool ret = FALSE; if (SvPOK(ssv) && SvPOK(dsv) && SvROK(encoding) && offset) { - bool ret = FALSE; SV *offsv; dSP; ENTER; @@ -11521,8 +11521,9 @@ Perl_sv_cat_decode(pTHX_ SV *dsv, SV *encoding, PUTBACK; FREETMPS; LEAVE; - return ret; } - Perl_croak(aTHX_ "Invalid argument to sv_cat_decode."); + else + Perl_croak(aTHX_ "Invalid argument to sv_cat_decode"); + return ret; } |