summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2007-05-24 21:53:42 +0000
committerobrien <obrien@FreeBSD.org>2007-05-24 21:53:42 +0000
commitae19feef0a7ac3071ea1dabccc9efee33c980a38 (patch)
tree1ca952cc34c296da34c5662e90f4c43f34f1ebde /sys/conf
parent74e15e6c709681da0f24e751248932e1e369743e (diff)
downloadFreeBSD-src-ae19feef0a7ac3071ea1dabccc9efee33c980a38.zip
FreeBSD-src-ae19feef0a7ac3071ea1dabccc9efee33c980a38.tar.gz
Temporarily add 'WITH_GCC3' that removes -Wno-pointer-sign from the
compiler invocation. This is just to help get over the hump of people tracking down bugs that may cross the GCC 4.2 upgrade. It is envisioned that this option goes away after a suitable amount of time.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kern.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 91c52df..eede8c7 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -12,7 +12,10 @@ CWARNFLAGS=
.else
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
- ${_wundef} -Wno-pointer-sign -fformat-extensions
+ ${_wundef} ${_Wno_pointer_sign} -fformat-extensions
+.if !defined(WITH_GCC3)
+_Wno_pointer_sign=-Wno-pointer-sign
+.endif
.if !defined(NO_UNDEF)
_wundef= -Wundef
.endif
OpenPOWER on IntegriCloud