From 7087a21c096179886f18cec5311cc7e897850eef Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 25 Mar 2006 22:10:27 +0000 Subject: Silence 3 (spurious) gcc warnings about "maybe used uninitialized". p4raw-id: //depot/perl@27607 --- sv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sv.c') diff --git a/sv.c b/sv.c index dc4bc5c1a6..1388b468a4 100644 --- a/sv.c +++ b/sv.c @@ -5384,7 +5384,7 @@ static STRLEN S_sv_pos_u2b_cached(pTHX_ SV *sv, MAGIC **mgp, const U8 *const start, const U8 *const send, STRLEN uoffset, STRLEN uoffset0, STRLEN boffset0) { - STRLEN boffset; + STRLEN boffset = 0; /* Actually always set, but let's keep gcc happy. */ bool found = FALSE; assert (uoffset >= uoffset0); @@ -5772,7 +5772,7 @@ Perl_sv_pos_b2u(pTHX_ register SV* sv, I32* offsetp) { const U8* s; const STRLEN byte = *offsetp; - STRLEN len; + STRLEN len = 0; /* Actually always set, but let's keep gcc happy. */ STRLEN blen; MAGIC* mg = NULL; const U8* send; -- cgit v1.2.1