Enabled GCC warnings for declarations after statements.

Enabled GCC warnings for declarations after statements.
* import-gnulib.config: Import the gnulib module 'warnings'
* configure.ac: Add GCC warning -Wdeclaration-after-statement.
* Makefile.am: Add AM_CFLAGS and set it to $(WARN_CFLAGS).
* find/Makefile.am, doc/Makefile.am, lib/Makefile.am: Likewise.
* locate/Makefile.am, xargs/Makefile.am: Likewise.

Signed-off-by: James Youngman <jay@gnu.org>
This commit is contained in:
James Youngman 2009-03-04 11:07:50 +00:00
parent 5dce9f443c
commit 6ba6fbaa96
9 changed files with 19 additions and 0 deletions

View File

@ -27,6 +27,15 @@
Likewise.
* m4/nullsort.m4: Removed occurrences of space followed by tab.
Enabled GCC warnings for declarations after statements.
Enabled GCC warnings for declarations after statements.
* import-gnulib.config: Import the gnulib module 'warnings'
* configure.ac: Add GCC warning -Wdeclaration-after-statement.
* Makefile.am: Add AM_CFLAGS and set it to $(WARN_CFLAGS).
* find/Makefile.am, doc/Makefile.am, lib/Makefile.am: Likewise.
* locate/Makefile.am, xargs/Makefile.am: Likewise.
2009-03-03 James Youngman <jay@gnu.org>
Fix Savannah bug #25359, more efficiently (suggestion by Nick Fortino).

View File

@ -1,5 +1,6 @@
AUTOMAKE_OPTIONS=gnits
# readme-alpha
AM_CFLAGS = $(WARN_CFLAGS)
EXTRA_DIST = COPYING ChangeLog TODO config.h.in stamp-h.in \
THANKS import-gnulib.sh import-gnulib.config

View File

@ -88,6 +88,8 @@ AC_SYS_LARGEFILE
gl_INIT
dnl Enable various GCC warnings.
gl_WARN_ADD([-Wdeclaration-after-statement])
dnl Older versions of gnulib/m4/nls.m4 provide AM_MKINSTALLDIRS.

View File

@ -1,3 +1,5 @@
AM_CFLAGS = $(WARN_CFLAGS)
info_TEXINFOS = find.texi find-maint.texi
find_TEXINFOS = perm.texi getdate.texi regexprops.texi fdl.texi
find_maint_TEXINFOS = fdl.texi

View File

@ -1,4 +1,5 @@
AUTOMAKE_OPTIONS = std-options
AM_CFLAGS = $(WARN_CFLAGS)
localedir = $(datadir)/locale
# noinst_PROGRAMS = regexprops
# regexprops_SOURCES = regexprops.c

View File

@ -77,6 +77,7 @@ timespec
verify
version-etc
version-etc-fsf
warnings
wcwidth
xalloc
xalloc-die

View File

@ -2,6 +2,7 @@
AUTOMAKE_OPTIONS = 1.5 gnits
# no-dependencies
AM_CFLAGS = $(WARN_CFLAGS)
noinst_LIBRARIES = libfind.a

View File

@ -1,5 +1,6 @@
# The default database to build and search.
AUTOMAKE_OPTIONS = std-options
AM_CFLAGS = $(WARN_CFLAGS)
LOCATE_DB = $(localstatedir)/locatedb
localedir = $(datadir)/locale

View File

@ -1,4 +1,5 @@
AUTOMAKE_OPTIONS = std-options
AM_CFLAGS = $(WARN_CFLAGS)
localedir = $(datadir)/locale
bin_PROGRAMS = xargs
man_MANS = xargs.1