git: 06d66775fc65 - stable/12 - gcc9: quiet Waddress-of-packed-member for user build
Dimitry Andric
dim at FreeBSD.org
Thu Sep 2 23:58:51 UTC 2021
The branch stable/12 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=06d66775fc65c854362812781509b0c45137b5ac
commit 06d66775fc65c854362812781509b0c45137b5ac
Author: Ryan Libby <rlibby at FreeBSD.org>
AuthorDate: 2019-12-21 02:43:49 +0000
Commit: Dimitry Andric <dim at FreeBSD.org>
CommitDate: 2021-09-02 23:30:11 +0000
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
(cherry picked from commit fc41af14c8298c88d5a2bee85ecf1864a3d37a51)
---
share/mk/bsd.sys.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 0849c242f4cd..b8bf3d0cd25a 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
More information about the dev-commits-src-all
mailing list