aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/Makefile2
-rw-r--r--posix/regex.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/posix/Makefile b/posix/Makefile
index 674277e48b..022b45509b 100644
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -91,7 +91,7 @@ do-wordexp-test: $(objpfx)wordexp-test
endif
endif
-CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes -DDEBUG
+CFLAGS-regex.c = -Wno-strict-prototypes -DDEBUG
CFLAGS-getaddrinfo.c = -DRESOLVER
$(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib)
diff --git a/posix/regex.c b/posix/regex.c
index 2f3a9b5b8f..507ac86545 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -2448,7 +2448,6 @@ regex_compile (pattern, size, syntax, bufp)
const int32_t *indirect;
int32_t idx;
const unsigned char *cp = str;
- int32_t weight;
int ch;
/* This #include defines a local function! */
@@ -2584,11 +2583,8 @@ regex_compile (pattern, size, syntax, bufp)
const unsigned char *extra;
int32_t idx;
int32_t elem;
- const unsigned char *cp = str;
- int32_t weight;
int32_t second;
int32_t hash;
- int ch;
table_size =
_NL_CURRENT_WORD (LC_COLLATE,