Most of the kernel source now works with "-Wcast-qual -Wshadow

-Wreturn-type -Wwrite-strings -Wswitch" so I am turning them on. There
is going to be a little lossage on some platforms but you can always
compile with "make DEFWARNINGS=no". Tested on sparc64 and i386.
This commit is contained in:
christos 2005-05-31 02:25:39 +00:00
parent c4bf9a57c0
commit 49f85b90ec
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.kern.inc,v 1.61 2005/05/30 15:54:30 thorpej Exp $
# $NetBSD: Makefile.kern.inc,v 1.62 2005/05/31 02:25:39 christos Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@ -64,6 +64,8 @@ CWARNFLAGS+= -Werror
.endif
CWARNFLAGS+= -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes
CWARNFLAGS+= -Wreturn-type -Wswitch -Wshadow
CWARNFLAGS+= -Wcast-qual -Wwrite-strings
# Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3,
# but our sources aren't up for it yet.
CWARNFLAGS+= -Wno-sign-compare