more -Wunused-but-set-variable
authortg <tg@mirbsd.org>
Thu, 28 Jul 2011 14:08:34 +0000 (14:08 +0000)
committertg <tg@mirbsd.org>
Thu, 28 Jul 2011 14:08:34 +0000 (14:08 +0000)
lib/regcomp.c
lib/regex_internal.c

index da24468..0918686 100644 (file)
@@ -1652,8 +1652,6 @@ calc_eclosure_iter (re_node_set *new_set, re_dfa_t *dfa, Idx node, bool root)
       && dfa->edests[node].nelem
       && !dfa->nodes[dfa->edests[node].elems[0]].duplicated)
     {
-      Idx cur_node;
-      cur_node = node;
       err = duplicate_node_closure (dfa, node, node, node, constraint);
       if (BE (err != REG_NOERROR, 0))
        return err;
index ae91f69..7dcfcf5 100644 (file)
@@ -641,15 +641,8 @@ re_string_reconstruct (re_string_t *pstr, Idx idx, int eflags)
                        mbstate_t cur_state;
                        wchar_t wc2;
                        Idx mlen = raw + pstr->len - p;
-                       unsigned char buf[6];
                        size_t mbclen;
 
-                       if (BE (pstr->trans != NULL, 0))
-                         {
-                           int i = mlen < 6 ? mlen : 6;
-                           while (--i >= 0)
-                             buf[i] = pstr->trans[p[i]];
-                         }
                        /* XXX Don't use mbrtowc, we know which conversion
                           to use (UTF-8 -> UCS4).  */
                        memset (&cur_state, 0, sizeof (cur_state));