From nobody Mon Dec 5 00:30:33 2022 X-Original-To: dev-commits-src-all@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 4NQPbF69DXz4k1y4; Mon, 5 Dec 2022 00:30:33 +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 4NQPbF5Glxz4P2p; Mon, 5 Dec 2022 00:30:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670200233; 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=1Nxgp5k/rSzAt9RduZK+0cscmlWXAh/t3+l34SCGojo=; b=xrE87Q1n1cd70CO/1sE8AixQtnMq6pFwoQW0jI7z0aGmM/3YXO94/+d+j+yp58nWXyvOS5 3vVP1jVP0zkbak1C+y7Hymf9WGx8pVWigKrlYYNHNi3u/QhViUUuOU3yZatXAmVFFCOp9G pj47QeZtsCVDgMl4meSZ7zES/urchoz5yVa8LZ0Z9nT4eQE26i44ZrkUovMM9qz+o3udwI oQQ/BNz8K5EOxCOsg324AzHmK57Z52smNqyVTeVc1OyuaWPn3B8hzfPmRuXJWyBcHJZfhb 4+mShMWMhKpdOOYAAC0vHGU3iZgPdtOcsZ5E4SFpdT9NokQColzWFwEUxT6j2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670200233; 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=1Nxgp5k/rSzAt9RduZK+0cscmlWXAh/t3+l34SCGojo=; b=jZ8vp9E7CTy2GswhvC9Z2Fs/1c/FQgetyEGjemI5OEDLXfTF4cTMGpY3qQqXrd0kfuZw4A DkL5Q2aXFDAqlCL2ouIsVdIsYp4/V1rKnP9EYOrFOpIrJXogZuVQpGPUWRPWHoG8kwhcmw PQzNcaOxieKsFIgNb1heWeXLASw5s7rBQfxH0EY4p8FEreNaWCKWAADWeYLDy3Hjc1c4dl sdNb4VtxeinKiMMmbVjjZ9HuEF2DvYIQGIdNGaStzyO1UDnvRLxLdj5ELRPgoCnCs85IhQ AFUmP7elCdBuv/kJ8EI1zs0eVArc1D2CvJTIhLvSC9JCU4a5lQmZWYuJVwYa3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670200233; a=rsa-sha256; cv=none; b=PpERtVFJDRw2leNb8k9L9Gbe6xF9/gSBh1h2WwHrMwgQc/HBQ9y5aQzSwZTCQQNXXUgCyU /9juLQlg3dBY1Q63kZP9jYsuf/ea+FgSOMGPbiniD3xEyp2MKu721a47Y+WwXu2A1Gv5RH xNbTHhkuAFHOJ5j9EqFTIwPXNw4qf2b7poE0TKhU4SynJg7pP+89Te4qbnXZaWkCN+LwiJ E+N1rHgFan0LRy204x/QzRZnmSrWK6MBbC5gOO7YxHiLrRhbiUmexaSW10pVgcYP1YBGJk JGyLjmCyrXb46Wlmk2XmHhPO48YCG8T5bLD382MuYtTKTEovOF39lM0oa+S9ew== 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 4NQPbF4Nj8zdPw; Mon, 5 Dec 2022 00:30:33 +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 2B50UX3Z069581; Mon, 5 Dec 2022 00:30:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B50UXYd069580; Mon, 5 Dec 2022 00:30:33 GMT (envelope-from git) Date: Mon, 5 Dec 2022 00:30:33 GMT Message-Id: <202212050030.2B50UXYd069580@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: 0163de282e31 - main - libsa: Disable -Wdangling-pointer for zfs.c. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 0163de282e3195a1845f75b486adb3e1e7580199 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0163de282e3195a1845f75b486adb3e1e7580199 commit 0163de282e3195a1845f75b486adb3e1e7580199 Author: John Baldwin AuthorDate: 2022-12-05 00:27:22 +0000 Commit: John Baldwin CommitDate: 2022-12-05 00:27:22 +0000 libsa: Disable -Wdangling-pointer for zfs.c. GCC 12 warns about a dangling pointer to 'objid' in zfs_bootenv_initial(). However, this appears to be a false positive as the pointer to 'objid' is only passed to zfs_lookup_dataset() but not saved anywhere that outlives the lifetime of the zfs_bootenv_initial() function. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37533 --- stand/libsa/zfs/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/libsa/zfs/Makefile.inc b/stand/libsa/zfs/Makefile.inc index dfd136a02a48..144b8cf7f31c 100644 --- a/stand/libsa/zfs/Makefile.inc +++ b/stand/libsa/zfs/Makefile.inc @@ -83,3 +83,5 @@ CFLAGS.skein_block.c+= -DSKEIN_LOOP=111 # To find blake3_impl.c in OpenZFS tree for our somehat ugly blake3_impl_hack.c # that's needed until the necessary tweaks can be upstreamed. CFLAGS.blake3_impl_hack.c+= -I${OZFS}/module/icp/algs/blake3 + +CWARNFLAGS.zfs.c+= ${NO_WDANGLING_POINTER}