all ports are now fully prototyped and pointer-arith clean.

turn on these warnings all the time.
This commit is contained in:
chs 2002-10-05 17:17:48 +00:00
parent ecdf1b4084
commit c022ea372b
1 changed files with 2 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.kern.inc,v 1.23 2002/09/29 07:22:58 sjg Exp $ # $NetBSD: Makefile.kern.inc,v 1.24 2002/10/05 17:17:48 chs Exp $
# #
# This file contains common `MI' targets and definitions and it is included # This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. There are # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. There are
@ -51,15 +51,8 @@ COPTS+= ${DEFCOPTS}
DBG= # might contain unwanted -Ofoo DBG= # might contain unwanted -Ofoo
DEFWARNINGS?= yes DEFWARNINGS?= yes
.if (${DEFWARNINGS} == "yes") .if (${DEFWARNINGS} == "yes")
CWARNFLAGS+= -Werror -Wall -Wno-main -Wno-format-zero-length CWARNFLAGS+= -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
WEAK_POINTERS?= no
.if !(${WEAK_POINTERS} == "yes")
CWARNFLAGS+= -Wpointer-arith
.endif
LOOSE_PROTOTYPES?= no
.if !(${LOOSE_PROTOTYPES} == "yes")
CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes
.endif
# XXX Delete -Wuninitialized for now, since the compiler doesn't # XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right. --thorpej # XXX always get it right. --thorpej
CWARNFLAGS+= -Wno-uninitialized CWARNFLAGS+= -Wno-uninitialized