aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2019-12-21 02:43:37 +0000
committerRyan Libby <rlibby@FreeBSD.org>2019-12-21 02:43:37 +0000
commit77acc3cfbcfbb2f66c683706e3b9e39d56c000fa (patch)
treee94bf920249bb07dd43aaa170662f39297ef5379
parent4c235c008383701d66b8e15878a08c7bccf3664f (diff)
downloadsrc-77acc3cfbcfbb2f66c683706e3b9e39d56c000fa.tar.gz
src-77acc3cfbcfbb2f66c683706e3b9e39d56c000fa.zip
gcc9: quiet Waddress-of-packed-member for kernel build
This is lame, but it's what we already do for the clang build. We take misaligned pointers into network header structures in many places. Reviewed by: ian Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D22876
Notes
Notes: svn path=/head/; revision=355970
-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 3d40d36c859e..1e29b58663d4 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -70,6 +70,9 @@ CWARNEXTRA+= -Wno-error=memset-elt-size
.if ${COMPILER_VERSION} >= 80000
CWARNEXTRA+= -Wno-error=packed-not-aligned
.endif
+.if ${COMPILER_VERSION} >= 90100
+CWARNEXTRA+= -Wno-address-of-packed-member
+.endif
.else
# For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars.
CWARNEXTRA?= -Wno-uninitialized