build: add configure-time --enable-gcc-warnings option; avoid warnings
authorJim Meyering <meyering@redhat.com>
Wed, 12 Nov 2008 10:11:54 +0000 (11:11 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 21 Dec 2008 16:49:58 +0000 (17:49 +0100)
commit292d68565a34b237cd2bf586ace545b7cd3dbfcf
treecd36b87521ab52d53ac12d930fddb698867727f6
parentc352bb469de0e7275f1266c0963d5429d245d711
build: add configure-time --enable-gcc-warnings option; avoid warnings

* bootstrap.conf (gnulib_modules): Add "warnings" module.
* configure.ac: Add --enable-gcc-warnings, derived from code in bison.
* src/Makefile.am (AM_CFLAGS): Set to $(WARN_CFLAGS) # $(WERROR_CFLAGS)
* lib/Makefile.am (AM_CFLAGS): Change spelling to $(WARN_CFLAGS)
Don't use $(WERROR_CFLAGS), yet.
* src/system.h (usage): Declare.
* src/base64.c (usage): Declare to be global, for consistency.
* src/timeout.c (usage): Likewise.
* src/truncate.c (usage): Likewise.
* src/getlimits.c (usage): Likewise.
* src/pinky.c (ttyname): Declare with prototype, rather than an
empty argument list.
* src/who.c (ttyname): Likewise.
* src/su.c (crypt, getusershell, setusershell, endusershell): Likewise.
src/Makefile.am