summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-30 20:59:57 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-30 20:59:57 +0000
commit497b47a829dd93323de2c7f4f6815ab9f23d6ada (patch)
treea963c20cc317682e994f7ff206d33bed67bd75d7 /sv.c
parent9108dd476ab123e35a9952fa95b6f608bede0e15 (diff)
downloadperl-497b47a829dd93323de2c7f4f6815ab9f23d6ada.tar.gz
Code cleanup based on turning off the -woffs in IRIX.
Not all of the gripes cleaned up (hairy code in hv.c and regcomp.c; unused newsp, gimme, and optype from cop.h macros; unused 'key' arguments in ?DBM_File.xs) (and the -woffs left to the IRIX hints) p4raw-id: //depot/perl@11051
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index ef046875f1..6ed638c742 100644
--- a/sv.c
+++ b/sv.c
@@ -5102,7 +5102,6 @@ coercion. See also C<SvCUR>, which gives raw access to the xpv_cur slot.
STRLEN
Perl_sv_len(pTHX_ register SV *sv)
{
- char *junk;
STRLEN len;
if (!sv)
@@ -5111,7 +5110,7 @@ Perl_sv_len(pTHX_ register SV *sv)
if (SvGMAGICAL(sv))
len = mg_length(sv);
else
- junk = SvPV(sv, len);
+ (void)SvPV(sv, len);
return len;
}
@@ -7782,7 +7781,7 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
q++;
if (*q == '*') {
q++;
- if (EXPECT_NUMBER(q, epix) && *q++ != '$')
+ if (EXPECT_NUMBER(q, epix) && *q++ != '$') /* epix currently unused */
goto unknown;
if (args)
i = va_arg(*args, int);