summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-01-06 12:06:14 +0100
committerJim Meyering <meyering@redhat.com>2010-02-03 21:52:30 +0100
commit26ad4e6d148f4d56ebb80417711c8a67082d43d7 (patch)
tree8fb79f6a0701eb72526acc7bc6e77ca2cd8e374f /lib
parent222bdcb32ecd45e6be7850515ef3fde0b682c88f (diff)
downloadgrep-26ad4e6d148f4d56ebb80417711c8a67082d43d7.tar.gz
build: avoid warnings in gnulib-supplied regex files
Now that we enable more warnings in lib/, we choose to avoid some via patches applied by bootstrap, using files in the gl/ hierarchy. Other, less-important warnings are avoided simply by turning off the -Wold-style-definition option and using a slightly relaxed set of warnings $(GNULIB_WARN_CFLAGS) in lib/. * gl/lib/regcomp.c.diff: Avoid warnings. * gl/lib/regex_internal.c.diff: Likewise. * gl/lib/regex_internal.h.diff: Likewise. * gl/lib/regexec.c.diff: Likewise. * configure.ac (GNULIB_PORTCHECK): Disable only -Wold-style-definition. * lib/Makefile.am (AM_CFLAGS): Use $(GNULIB_WARN_CFLAGS) rather than the slightly more strict $(WARN_CFLAGS).
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 7b34222b..c3760d6c 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -18,7 +18,7 @@ include gnulib.mk
INCLUDES = -I.. -I$(srcdir)
-AM_CFLAGS += $(WARN_CFLAGS) $(WERROR_CFLAGS)
+AM_CFLAGS += $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
libgreputils_a_SOURCES += \
savedir.c savedir.h