Add support for warning checked builds
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Mon, 28 Sep 2009 10:07:58 +0000 (12:07 +0200)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 28 Sep 2009 12:00:04 +0000 (05:00 -0700)
commit6d51ebd6c8d4d5d6ddc42b539be5814e7c468d9c
treefa7561615efed7f38c02da87158e2017303853b7
parent5afd2c34699c60ba247b1de8ec42efbed1c09e39
Add support for warning checked builds

This patch adds a '--enable-checking' configuration option. When this
option is supplied, and gcc is in use, the compiler will treat any
warnings as errors. This will hopefully help stop new warnings from
creeping into the tree.

In order to still be able to build, all of the currently existing
warnings are accepted (these are documented in README.WARNINGS). With
this set of warning inhibitions, the tree is known to build on 32bit
Leopard - other systems may vary. Warning inhibition may be disabled
by supplying --enable-checking=all - in this case the tree will
definitely not build!

If --enabled-checking is not specified, the existing compilation
behaviour is maintained, so there is no user-visible change.

Gcc 4.2, or later, is required to use the pragma sets contained within
this patch. Again, they are not visible unless --enable-checking is
given.

Reviewed-on: http://gerrit.openafs.org/526
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
40 files changed:
README.WARNINGS [new file with mode: 0644]
acinclude.m4
src/afs/afs_syscall.c
src/afsd/Makefile.in
src/afsd/afsd.c
src/auth/Makefile.in
src/bozo/Makefile.in
src/bozo/bosserver.c
src/bubasics/Makefile.in
src/bucoord/Makefile.in
src/bucoord/ubik_db_if.c
src/budb/Makefile.in
src/butc/Makefile.in
src/cf/osconf.m4
src/comerr/Makefile.in
src/config/Makefile.config.in
src/fsint/Makefile.in
src/fsprobe/Makefile.in
src/kauth/Makefile.in
src/libadmin/bos/Makefile.in
src/libadmin/kas/Makefile.in
src/libadmin/samples/Makefile.in
src/libadmin/samples/rxdebug_peers.c
src/libadmin/test/Makefile.in
src/libadmin/vos/Makefile.in
src/libafsauthent/Makefile.in
src/libafsrpc/Makefile.in
src/libuafs/Makefile.common.in
src/ptserver/Makefile.in
src/rxkad/Makefile.in
src/tviced/Makefile.in
src/ubik/Makefile.in
src/ubik/ubikclient.c
src/uss/Makefile.in
src/viced/Makefile.in
src/vlserver/Makefile.in
src/vol/Makefile.in
src/volser/Makefile.in
src/volser/vol-dump.c
src/volser/vsprocs.c