summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-03-25 22:10:27 +0000
committerNicholas Clark <nick@ccl4.org>2006-03-25 22:10:27 +0000
commit7087a21c096179886f18cec5311cc7e897850eef (patch)
treee863c1e74f7f60ed972569f758275a3662d1bd6b /sv.c
parent962e59f3942cd3c21a40f74d9355b5264589f9a0 (diff)
downloadperl-7087a21c096179886f18cec5311cc7e897850eef.tar.gz
Silence 3 (spurious) gcc warnings about "maybe used uninitialized".
p4raw-id: //depot/perl@27607
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
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;