summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--configure.ac2
-rw-r--r--src/grep.c4
3 files changed, 5 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 32f9208f..435321a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,10 @@
+!/gnulib-tests/Makefile.am
!/lib/Makefile.am
!/lib/savedir.c
!/lib/savedir.h
!/m4/djgpp.m4
*.a
+*.exe
*.o
*~
.deps
@@ -19,6 +21,7 @@
/config.status
/configure
/configure.ac
+/gnulib-tests/*
/lib/*
/lib/charset.alias
/lib/configmake.h
diff --git a/configure.ac b/configure.ac
index 50fcf5c4..85f1563f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,7 +130,7 @@ if test "$gl_gcc_warnings" = yes; then
# Remove the following and save the result in GNULIB_WARN_CFLAGS.
nw=
#nw="$nw -Wuninitialized"
- #nw="$nw -Wunused-macros"
+ nw="$nw -Wunused-macros"
#nw="$nw -Wmissing-prototypes"
nw="$nw -Wold-style-definition"
gl_MANYWARN_COMPLEMENT([GNULIB_WARN_CFLAGS], [$WARN_CFLAGS], [$nw])
diff --git a/src/grep.c b/src/grep.c
index 8193bc55..f4cd8757 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -802,7 +802,7 @@ print_line_middle (const char *beg, const char *lim,
/* This can't possibly be correct with UTF-8,
but it's equivalent to what was there so far. */
while (--i >= 0)
- buf[i] = tolower(beg[i]);
+ buf[i] = tolower((unsigned char) beg[i]);
}
else
{
@@ -1830,8 +1830,6 @@ main (int argc, char **argv)
int opt, cc, status;
int default_context;
FILE *fp;
- extern char *optarg;
- extern int optind;
initialize_main (&argc, &argv);
set_program_name (argv[0]);