From ddb0d839ce5feb80ae0b6eb5db212553f5d17c36 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 23 Oct 2012 21:11:49 -0600 Subject: [PATCH] regexec.c: Silence compiler warning Some compilers are saying that c1 and c2 in this routine are not initialized. I hand-verified that there really is no path through the routine that uses either of these before setting, so this is a compiler issue. Nonetheless, its best to silence the warning. --- regexec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regexec.c b/regexec.c index a5451b6..7aef6ba 100644 --- a/regexec.c +++ b/regexec.c @@ -3333,7 +3333,8 @@ S_setup_EXACTISH_ST_c1_c2(pTHX_ const regnode * const text_node, int *c1p, U8* c const bool utf8_target = PL_reg_match_utf8; - UV c1, c2; + UV c1 = CHRTEST_NOT_A_CP_1; + UV c2 = CHRTEST_NOT_A_CP_2; bool use_chrtest_void = FALSE; /* Used when we have both utf8 input and utf8 output, to avoid converting -- 2.7.4