Disable -Werror for now.
Remove -I- construct obsolete in GCC 4.2.
This commit is contained in:
parent
42f17ea912
commit
da3bcc92c1
@ -53,7 +53,7 @@ C_DIALECT= -std=c99
|
||||
NOSTDINC= -nostdinc
|
||||
.endif
|
||||
|
||||
INCLUDES= ${NOSTDINC} -I- ${INCLMAGIC} -I. -I$S
|
||||
INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S
|
||||
|
||||
# This hack lets us use the OpenBSD altq code without spamming a new
|
||||
# include path into contrib'ed source files.
|
||||
@ -90,7 +90,7 @@ CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.
|
||||
CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
|
||||
CFLAGS+= --param inline-unit-growth=100
|
||||
CFLAGS+= --param large-function-growth=1000
|
||||
WERROR?= -Werror
|
||||
#WERROR?= -Werror
|
||||
.endif
|
||||
|
||||
# XXX LOCORE means "don't declare C stuff" not "for locore.s".
|
||||
|
@ -79,7 +79,7 @@ CFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/}
|
||||
. if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing)
|
||||
CFLAGS+= -fno-strict-aliasing
|
||||
. endif
|
||||
WERROR?= -Werror
|
||||
#WERROR?= -Werror
|
||||
.endif
|
||||
CFLAGS+= ${WERROR}
|
||||
CFLAGS+= -D_KERNEL
|
||||
@ -93,7 +93,7 @@ C_DIALECT= -std=c99
|
||||
NOSTDINC= -nostdinc
|
||||
.endif
|
||||
CFLAGS+= ${C_DIALECT}
|
||||
CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} -I- ${INCLMAGIC} ${CFLAGS:M-I*}
|
||||
CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} ${INCLMAGIC} ${CFLAGS:M-I*}
|
||||
.if defined(KERNBUILDDIR)
|
||||
CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user