svn commit: r355970 - head/sys/conf

Ryan Libby rlibby at FreeBSD.org
Sat Dec 21 02:43:38 UTC 2019


Author: rlibby
Date: Sat Dec 21 02:43:37 2019
New Revision: 355970
URL: https://svnweb.freebsd.org/changeset/base/355970

Log:
  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

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Sat Dec 21 02:43:20 2019	(r355969)
+++ head/sys/conf/kern.mk	Sat Dec 21 02:43:37 2019	(r355970)
@@ -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


More information about the svn-src-head mailing list