From 7ec7b66a3c3a4d3596537a119d0f97135ab16ea4 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 15 Feb 2012 21:24:51 +0200 Subject: Fix warnings from gcc -Wall, GCC 4.6.2. --- regex_internal.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'regex_internal.c') diff --git a/regex_internal.c b/regex_internal.c index 0c4f8f80..d76cae2e 100644 --- a/regex_internal.c +++ b/regex_internal.c @@ -738,15 +738,8 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags) mbstate_t cur_state; wchar_t wc2; int 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)); -- cgit v1.2.3