maint: turn on compiler warnings for gnulib tests

* gnulib-tests/Makefile.am (AM_CFLAGS): Add WARN_CFLAGS.
* configure.ac (enable-gcc-warnings): Also use -funit-at-a-time,
to silence gcc 4.3.4 -Wdisabled-optimization.
* .gitignore: Ignore some more files.
This commit is contained in:
Eric Blake 2009-10-21 11:27:29 -06:00
parent cbf36952d8
commit 5e361387d0
4 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@ -47,11 +47,13 @@ lib/arpa
lib/binary-io.h
lib/charset.alias
lib/configmake.h
lib/glthread
lib/libcoreutils.a
lib/printf.c
lib/progname.c
lib/progname.h
lib/selinux
lib/unistr
lib/uniwidth
m4/.cvsignore
m4/.gitignore
@ -72,3 +74,4 @@ src/version.c
src/version.h
stamp-h1
tests/*/*.log
tests/test-suite.log

View File

@ -106,6 +106,7 @@ if test "$gl_gcc_warnings" = yes; then
gl_WARN_ADD([-Wno-logical-op])
gl_WARN_ADD([-fdiagnostics-show-option])
gl_WARN_ADD([-funit-at-a-time])
AC_SUBST([WARN_CFLAGS])

2
gnulib

@ -1 +1 @@
Subproject commit f7f4cd99ff9ce8efee94aafdd5980cb4bb1d1395
Subproject commit 447ce7436647899cfe03ee154bb2b2789d3a8eac

View File

@ -1 +1,3 @@
include gnulib.mk
AM_CFLAGS = $(WARN_CFLAGS) # $(WERROR_CFLAGS)