Date: Wed, 22 Mar 2023 22:28:43 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 2c91d5899a90 - stable/12 - gcc9: quiet Waddress-of-packed-member for kernel build Message-ID: <202303222228.32MMShJm001916@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2c91d5899a9004bc281063dc6439cd17b05f71b2 commit 2c91d5899a9004bc281063dc6439cd17b05f71b2 Author: Ryan Libby <rlibby@FreeBSD.org> AuthorDate: 2019-12-21 02:43:37 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-03-22 22:21:11 +0000 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 (cherry picked from commit 77acc3cfbcfbb2f66c683706e3b9e39d56c000fa) --- sys/conf/kern.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 243419103b22..4a36aae4db94 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -82,6 +82,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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303222228.32MMShJm001916>