From 1059e5b21f7e16d18b3df847d2e5d3f343f44f1c Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 18 Dec 2015 22:59:35 -0700 Subject: [PATCH 1/1] regcomp.c: Silence uninit compiler warning This shouldn't actually happen, and g++ under -O0 didn't flag it, but gcc under -O2 does, so initialize to an illegal value --- regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regcomp.c b/regcomp.c index 68fcd2e..7a028fd 100644 --- a/regcomp.c +++ b/regcomp.c @@ -16132,7 +16132,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth, if (optimizable && cp_list && ! invert) { UV start, end; U8 op = END; /* The optimzation node-type */ - int posix_class; + int posix_class = -1; /* Illegal value */ const char * cur_parse= RExC_parse; invlist_iterinit(cp_list); -- 1.8.3.1