Don't duplicate -Werror here, bsd.sys.mk already provides it

This commit is contained in:
joerg 2011-05-30 03:12:43 +00:00
parent ab7b7d013a
commit 94dd60a9c3
1 changed files with 1 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.kern.inc,v 1.137 2011/05/26 12:56:30 joerg Exp $ # $NetBSD: Makefile.kern.inc,v 1.138 2011/05/30 03:12:43 joerg 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}. # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@ -63,9 +63,6 @@ COPTS?= ${DEFCOPTS}
DBG= # might contain unwanted -Ofoo DBG= # might contain unwanted -Ofoo
DEFWARNINGS?= yes DEFWARNINGS?= yes
.if (${DEFWARNINGS} == "yes") .if (${DEFWARNINGS} == "yes")
. if !defined(NOGCCERROR)
CWARNFLAGS+= -Werror
. endif
CWARNFLAGS+= -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith CWARNFLAGS+= -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes
CWARNFLAGS+= -Wswitch -Wshadow CWARNFLAGS+= -Wswitch -Wshadow