From nobody Wed May 03 00:29:31 2023 X-Original-To: dev-commits-src-branches@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 4Q9yWJ2q5sz48NDy; Wed, 3 May 2023 00:29:32 +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 4Q9yWJ1NLjz3lsl; Wed, 3 May 2023 00:29:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073772; 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=KGCnPvphISDwuYkwSdSe2Qj8CJnUQ56ZuRZyZPJOoeU=; b=CY9/lyPDi/Scwxe9zW5eBG6CFZfWn1DuDuLGOSAJent9A31G+iKAQMHZMWZ2lLb47jylg4 k+T6CiEzu2+IuIyLM6fllv0MwfRkUr4+KzXOsrVwu5C0ztZjzsbkNsX4ggDqIZZK4ldKWs ChMflVhA6kO52NELgfvedx5n2OFe8Ge80Cu/AvqjGbcQlB+zILOPqr1bV30lFlCRKgb/Eg lCnQC/C1UqieDvw5RayuaKIFSaNepEPb/CPLc3fJnQctfOUkYOLguiR8IU/XlnYHfMq6QU OegGlCvSTcCwTnnOqEoxDihJZWRUF+BHV7RlqF1mW+5rBCILZO5rD85mN8C8Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073772; 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=KGCnPvphISDwuYkwSdSe2Qj8CJnUQ56ZuRZyZPJOoeU=; b=oAYX9ehqE9j1iLUTXcivcawiefW/bCTqFuXi3D1Of++Yam/fpt0w2KNsq4DxgDPqUNxuq3 K/3i+jgtHXkapEADQQ56eLEGmp8kbJ334YIXWp/B59TdPm4xr9chOOshBNrx+lAKg6beSU 0NInHLSI4o79p9U4v/uYPB+CZD4ufaa/rM+Df6wtRqIF2B+JvonqR4Rj3iPNza1L2QfN0t 0D4fJ/wu8/AygXAOcHBfLdi6jrfInGFWxpyUstntZfLmXHQfqCPHfQx4ZNh7FIzi3poSpi wlsFkXTeXOkeeCiRwojDZGKvE4VrceTpXxHIvptmpsRESOh9x7dpI1lOCYtLSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683073772; a=rsa-sha256; cv=none; b=Vm4Q2QAJWRd4op6Ly777Htf3t2mKOes7JppfVrSe07gkE8/Yt81LFxV2DhjZ+0DaavaNeY zCyTcDJ2JpdT4I1QO9UPsocZ9Y4H1ygL+F3rYKiep7YLK5TjmwyEMmH85U2PP4dhYDkS/L xczij7KXV4t/h7FY1tloc3mXWk4qUmvPo+AoKdn5eXykojVKzIh7B0vIODqQFE6FZh38e7 ibhP1X/FcBMu1eR1gDvOpXKezpV892254S7yuC9sU6WcCdL9CeP15STnAL9K9/2K4zXLkG MUbrD9GkBIjTN516m+BLNA37jV4+vN0GyLO5cz+1/RGwtZYALySoXoQlCe03Kg== 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 4Q9yWH6kV5z18Fg; Wed, 3 May 2023 00:29:31 +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 3430TVxK071848; Wed, 3 May 2023 00:29:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3430TVKC071847; Wed, 3 May 2023 00:29:31 GMT (envelope-from git) Date: Wed, 3 May 2023 00:29:31 GMT Message-Id: <202305030029.3430TVKC071847@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 7b9e74754674 - stable/13 - libsa: Disable -Wdangling-pointer for zfs.c. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 7b9e74754674be7afa1059f4ca66d6c6723efdc9 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7b9e74754674be7afa1059f4ca66d6c6723efdc9 commit 7b9e74754674be7afa1059f4ca66d6c6723efdc9 Author: John Baldwin AuthorDate: 2022-12-05 00:27:22 +0000 Commit: John Baldwin CommitDate: 2023-05-03 00:03:01 +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 (cherry picked from commit 0163de282e3195a1845f75b486adb3e1e7580199) --- 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 f0d8129be9e1..4eb89fb80b2c 100644 --- a/stand/libsa/zfs/Makefile.inc +++ b/stand/libsa/zfs/Makefile.inc @@ -42,3 +42,5 @@ CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs CFLAGS.zfs.c+= -I${SYSDIR}/cddl/contrib/opensolaris/common/lz4 CFLAGS+= -Wformat -Wall + +CWARNFLAGS.zfs.c+= ${NO_WDANGLING_POINTER}