Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Dec 2019 02:43:37 +0000 (UTC)
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355970 - head/sys/conf
Message-ID:  <201912210243.xBL2hbnK088268@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912210243.xBL2hbnK088268>