aboutsummaryrefslogtreecommitdiff
path: root/posix/regex_internal.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2017-12-22 07:57:25 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-12-22 08:01:27 -0800
commited8ae46bed42772a5b22b710fb12d7f59ae084b4 (patch)
tree21a080233937f9a97c8fd356cef8dadd5426018a /posix/regex_internal.c
parentbad7a0c81f501fbbcc79af9eaa4b8254441c4a1f (diff)
downloadglibc-ed8ae46bed42772a5b22b710fb12d7f59ae084b4.tar
glibc-ed8ae46bed42772a5b22b710fb12d7f59ae084b4.tar.gz
glibc-ed8ae46bed42772a5b22b710fb12d7f59ae084b4.tar.bz2
glibc-ed8ae46bed42772a5b22b710fb12d7f59ae084b4.zip
Avoid gcc warnings on cygwin
* posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]: * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]: Avoid unused variable.
Diffstat (limited to 'posix/regex_internal.c')
-rw-r--r--posix/regex_internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regex_internal.c b/posix/regex_internal.c
index a97f703bc7..705d6a4c73 100644
--- a/posix/regex_internal.c
+++ b/posix/regex_internal.c
@@ -681,10 +681,10 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags)
}
else
{
+#ifdef RE_ENABLE_I18N
/* No, skip all characters until IDX. */
int prev_valid_len = pstr->valid_len;
-#ifdef RE_ENABLE_I18N
if (BE (pstr->offsets_needed, 0))
{
pstr->len = pstr->raw_len - idx + offset;