summaryrefslogtreecommitdiff
path: root/gnulib-tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2020-11-13 10:20:19 -0800
committerJim Meyering <meyering@fb.com>2020-11-26 09:24:24 -0800
commit623008c296577495e00325bd3640a1b0051fa044 (patch)
treee43b52a2a5e8be2876fcadecc330639efb33ba17 /gnulib-tests
parentfac92da8bce6544582e76a720fe0787c0e0b860a (diff)
downloadgrep-623008c296577495e00325bd3640a1b0051fa044.tar.gz
tests: enable warnings for the gnulib-tests subdir
* gnulib-tests/Makefile.am (AM_CFLAGS): Enable gnulib warning options for these tests. * configure.ac (GNULIB_TEST_WARN_CFLAGS): Disable the same three warning options that coreutils does, and a few more for GCC11.
Diffstat (limited to 'gnulib-tests')
-rw-r--r--gnulib-tests/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnulib-tests/Makefile.am b/gnulib-tests/Makefile.am
index 6635f706..3085f635 100644
--- a/gnulib-tests/Makefile.am
+++ b/gnulib-tests/Makefile.am
@@ -1 +1,4 @@
+AM_CFLAGS =
include gnulib.mk
+
+AM_CFLAGS += $(GNULIB_TEST_WARN_CFLAGS) $(WERROR_CFLAGS)