diff options
author | obrien <obrien@FreeBSD.org> | 2006-06-29 21:15:25 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2006-06-29 21:15:25 +0000 |
commit | 015886f70c149c67011566acfd210ca13fcf26ee (patch) | |
tree | 13f3e2dd8441907d687055a10e1de7a40197ac03 /sys/conf | |
parent | d7fe1ba45fc8e393034951554d7517991490e2d3 (diff) | |
download | FreeBSD-src-015886f70c149c67011566acfd210ca13fcf26ee.zip FreeBSD-src-015886f70c149c67011566acfd210ca13fcf26ee.tar.gz |
Create new dialect knob, as setting the language dialect isn't a warning flag.
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.mk | 2 | ||||
-rw-r--r-- | sys/conf/kern.pre.mk | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index cea8af1..fed6657 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -12,7 +12,7 @@ CWARNFLAGS= .else CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ - ${_wundef} -fformat-extensions -std=c99 + ${_wundef} -fformat-extensions .if !defined(NO_UNDEF) _wundef= -Wundef .endif diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 0fdd246..080d612 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -43,6 +43,7 @@ COPTFLAGS+= ${_CPUCFLAGS} .if ${CC} == "icc" NOSTDINC= -X .else +C_DIALECT= -std=c99 NOSTDINC= -nostdinc .endif @@ -80,7 +81,7 @@ INCLUDES+= -I$S/gnu/fs/xfs/FreeBSD -I$S/gnu/fs/xfs/FreeBSD/support -I$S/gnu/fs/x .endif -CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} +CFLAGS= ${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS} CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h .if ${CC} != "icc" CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT} |