summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-08-17 21:07:21 +0000
committerdim <dim@FreeBSD.org>2015-08-17 21:07:21 +0000
commit51e716cb71375836e40df804bbce03319e01649c (patch)
tree47629e9698b81bcae195466d418153e177327328 /sys
parent1b2342b5bac68ed5fb9fa605713427bcfc02f964 (diff)
downloadFreeBSD-src-51e716cb71375836e40df804bbce03319e01649c.zip
FreeBSD-src-51e716cb71375836e40df804bbce03319e01649c.tar.gz
For kernel builds, make the -Wshift-negative-value non-fatal for now.
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/kern.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 8e76268..7f1c026 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -30,6 +30,9 @@ NO_WCAST_QUAL= -Wno-cast-qual
CWARNEXTRA?= -Wno-error-tautological-compare -Wno-error-empty-body \
-Wno-error-parentheses-equality -Wno-error-unused-function \
-Wno-error-pointer-sign
+.if ${COMPILER_VERSION} >= 30700
+CWARNEXTRA+= -Wno-error-shift-negative-value
+.endif
CLANG_NO_IAS= -no-integrated-as
.if ${COMPILER_VERSION} < 30500
OpenPOWER on IntegriCloud