diff --git a/src/nfa/limex_compile.cpp b/src/nfa/limex_compile.cpp index f84cdc32..2ec65552 100644 --- a/src/nfa/limex_compile.cpp +++ b/src/nfa/limex_compile.cpp @@ -1572,7 +1572,7 @@ u32 findMaxVarShift(const build_info &args, u32 nShifts) { static int getLimexScore(const build_info &args, u32 nShifts) { const NGHolder &h = args.h; - u32 maxVarShift = nShifts; + u32 maxVarShift; int score = 0; score += SHIFT_COST * nShifts; diff --git a/src/nfa/mpv.c b/src/nfa/mpv.c index cba3d159..2b1b5c5f 100644 --- a/src/nfa/mpv.c +++ b/src/nfa/mpv.c @@ -512,7 +512,7 @@ size_t find_last_bad(const struct mpv_kilopuff *kp, const u8 *buf, verm_restart:; assert(buf[curr] == kp->u.verm.c); - size_t test = curr; + size_t test; if (curr + min_rep < length) { test = curr + min_rep; } else { @@ -534,7 +534,7 @@ size_t find_last_bad(const struct mpv_kilopuff *kp, const u8 *buf, m128 hi = kp->u.shuf.mask_hi; shuf_restart: assert(do_single_shufti(lo, hi, buf[curr])); - size_t test = curr; + size_t test; if (curr + min_rep < length) { test = curr + min_rep; } else { @@ -556,7 +556,7 @@ size_t find_last_bad(const struct mpv_kilopuff *kp, const u8 *buf, const m128 mask1 = kp->u.truffle.mask1; const m128 mask2 = kp->u.truffle.mask2; truffle_restart:; - size_t test = curr; + size_t test; if (curr + min_rep < length) { test = curr + min_rep; } else { @@ -582,7 +582,7 @@ size_t find_last_bad(const struct mpv_kilopuff *kp, const u8 *buf, nverm_restart:; assert(buf[curr] != kp->u.verm.c); - size_t test = curr; + size_t test; if (curr + min_rep < length) { test = curr + min_rep; } else { diff --git a/src/nfagraph/ng_anchored_dots.cpp b/src/nfagraph/ng_anchored_dots.cpp index 9a13376d..8286d816 100644 --- a/src/nfagraph/ng_anchored_dots.cpp +++ b/src/nfagraph/ng_anchored_dots.cpp @@ -165,9 +165,9 @@ void reformAnchoredRepeatsComponent(NGHolder &g, return; } - NFAVertex dotV = NGHolder::null_vertex(); + set otherV; - dotV = findReformable(g, compAnchoredStarts, otherV); + NFAVertex dotV = findReformable(g, compAnchoredStarts, otherV); if (dotV == NGHolder::null_vertex()) { DEBUG_PRINTF("no candidate reformable dot found.\n"); return; @@ -268,9 +268,9 @@ void reformUnanchoredRepeatsComponent(NGHolder &g, } while (true) { - NFAVertex dotV = NGHolder::null_vertex(); + set otherV; - dotV = findReformable(g, compUnanchoredStarts, otherV); + NFAVertex dotV = findReformable(g, compUnanchoredStarts, otherV); if (dotV == NGHolder::null_vertex()) { DEBUG_PRINTF("no candidate reformable dot found.\n"); return;