From nobody Wed Dec 21 18:49:42 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NcjD71Fk5z1Gl0r; Wed, 21 Dec 2022 18:49:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NcjD70ZTtz4611; Wed, 21 Dec 2022 18:49:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671648583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pKGF5N1cFBumYq5OVaKFZ5jVz7mZC6DRB3b8GOFIYxA=; b=Loq1aeQOcTTx2/lt790yZxJMovoBJe6z6FGa71DoJmdd4S1C/+VXd+76AZmCaPEmLPJbNq RHJZvtBJBBInrsrPazPGaAFr50QynPV+kLclhE24Z9yb47TzrcDxZST2vDwWk4YlLmSFaN XjaN2DOCTiB/bVWrfcRcgGET5iDzmcfp78QY0aZLdX1UPa/Ih/ZS7xBIv7sjk8kQ7/2+sZ /O8C9CSHU3S4Fl0wr0mHyEQhRCTAIBFp2rBs57kSRdYxBpkYH0QXcdMsJEHdAeT1anm6vR YsJPHqI4WVzQIAkD0tqoA1Z55OCzvmvKdsZNJ13tPm3pzB9ULeKQcKqrHGwOmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671648583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pKGF5N1cFBumYq5OVaKFZ5jVz7mZC6DRB3b8GOFIYxA=; b=a8XLPgzdmXBUjYy+0olNbp4d1y6VZhZ8OTyh9HoKESzD1ibvsTtjjTIrl/nesKLdlBmkVz yQyhVB4KJKiybLl3nTZhsQZ+d7Xcus54Yidugc7xLTTnIGb+u87njJAWMUCDUV7YnCEhOt jCyylA0jnvw3ww2H9J66W7qrC6QbQHtsOy26gY3ILDonNkyOz9LL+6XQkQWKR+zSEsNwFY GSdngNI6GCm7l0OFVJMkQ6T72Rm1OOLBXwNINbTDu7TP8UUtrudai/32KXYogBevZGphcx +cZVVOKgynuBlDD76Mtm4lvzEKaTc+6l6URx2aKXIZqQGu6t5+MaXeSD/Y0+Yg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671648583; a=rsa-sha256; cv=none; b=plVO3Rrievq+svIglg0TTD0DhwP7poiQrcjYXzEFwUBZF0NzBi9GL8ThGMQyMcVZArA7kn aGafG4ISTMevsFwH0ctSTyyAL8+Vnfbeqe0e1As+SNyWInJ5HXavhWM9aU1fo/HFjsXsJl v0Ph4lRYJLGwzrZs5dg5uBojuPQTYfodP4tCK9bC801s1E2SL+POz5fxU7G/cCsGQqPR8y h3EmM6VLkjHth011RA6l0G/x4cjB49lfFn5E/lK/lLVLR99e8qTAEu8Z9BPVqEMuT/CvYt Sd6TysPjrtv75ydDN+v00t67oy7DxfbsNczTllmRgPhiZeaIshUkfuyPh2yiIw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NcjD66lVxzQbj; Wed, 21 Dec 2022 18:49:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BLIngmQ084595; Wed, 21 Dec 2022 18:49:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BLIngIK084594; Wed, 21 Dec 2022 18:49:42 GMT (envelope-from git) Date: Wed, 21 Dec 2022 18:49:42 GMT Message-Id: <202212211849.2BLIngIK084594@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 2637ed558baa - main - Disable -Wdangling-pointer for the kernel for GCC 12. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2637ed558baacdab7a8cf789dca713bde5843e43 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2637ed558baacdab7a8cf789dca713bde5843e43 commit 2637ed558baacdab7a8cf789dca713bde5843e43 Author: John Baldwin AuthorDate: 2022-12-21 18:46:26 +0000 Commit: John Baldwin CommitDate: 2022-12-21 18:46:26 +0000 Disable -Wdangling-pointer for the kernel for GCC 12. Some of the warnings raised in the kernel seem to be outright bugs in the compiler (e.g. the cases in ata_xpt.c and scsi_xpt.c). Other cases are not fatal and it didn't seem to find any legitimate bugs in the kernel. Differential Revision: https://reviews.freebsd.org/D37629 --- sys/conf/kern.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index cd8107f61329..5231a289981e 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -78,7 +78,8 @@ CWARNEXTRA+= -Wno-error=packed-not-aligned CWARNEXTRA+= -Wno-address-of-packed-member \ -Wno-error=alloca-larger-than= .if ${COMPILER_VERSION} >= 120100 -CWARNEXTRA+= -Wno-error=nonnull +CWARNEXTRA+= -Wno-error=nonnull \ + -Wno-dangling-pointer .endif .endif