git: 2c91d5899a90 - stable/12 - gcc9: quiet Waddress-of-packed-member for kernel build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 22:28:43 UTC
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