aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2019-12-21 02:43:49 +0000
committerRyan Libby <rlibby@FreeBSD.org>2019-12-21 02:43:49 +0000
commitfc41af14c8298c88d5a2bee85ecf1864a3d37a51 (patch)
treee993adf0fe4fafe0daff43bb859ea1e5d8416ef8
parent77acc3cfbcfbb2f66c683706e3b9e39d56c000fa (diff)
downloadsrc-fc41af14c8298c88d5a2bee85ecf1864a3d37a51.tar.gz
src-fc41af14c8298c88d5a2bee85ecf1864a3d37a51.zip
gcc9: quiet Waddress-of-packed-member for user build
Disable the warning for WARNS <= 3. This is lame, but it's what we already do for the clang build. Reviewed by: dim Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D22889
Notes
Notes: svn path=/head/; revision=355971
-rw-r--r--share/mk/bsd.sys.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 4b7c426e6dcb..f0801ebed66b 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -94,6 +94,9 @@ CWARNFLAGS.clang+= -Wno-unused-local-typedef
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 40000
CWARNFLAGS.clang+= -Wno-address-of-packed-member
.endif
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 90100
+CWARNFLAGS.gcc+= -Wno-address-of-packed-member
+.endif
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 70000 && \
${MACHINE_CPUARCH} == "arm" && !${MACHINE_ARCH:Marmv[67]*}
CWARNFLAGS.clang+= -Wno-atomic-alignment