From nobody Wed Nov 15 02:37:46 2023 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 4SVS4p5prdz50XVx; Wed, 15 Nov 2023 02:37:46 +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 4SVS4p5Dhnz4Xj7; Wed, 15 Nov 2023 02:37:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700015866; 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=SgpHy3azksl6aW7pTaFk597W9bXKzXM169R8h9S20ik=; b=kXri49C5S4awMJVkqoOY0MEuX4IfLUYn/CT8ABWi2qcJf1p56G4isnxodEYbfY1eIysqRK qbOk666AunWbWjsBLb2LBi8/4ywt/6F9k+0zgaXhQf0bFLD4hxTN9Q7E9UQZyLHND7OKPE 3vnAYGs9RnCgTQGSXBAjH/azmRnXS/IRL7d7s8B9dF8OanPS1x5YMjp9l9XwIVkddZ4U/w N5/QIl5flxmVuQd/UHytU/L/3XlJxPlrY082GPbD7VhkO6vXjSzST9LewhMOwfwn+ASK4y vdRBV3co/fleL5flqPQaJv0OUwabzbLdOiZ6iaF3NIUw3o0vuynWTUNrKh1kwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700015866; 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=SgpHy3azksl6aW7pTaFk597W9bXKzXM169R8h9S20ik=; b=mzjeOWHR+14h/mCipZDBBsmDQnoU3wZe5nXzWpbv33AA56NbfPOoQKFsBaiPFeXt2Qf0dJ tSMxTtwjh4Auv8vtPfXHgNXsbKueCxR5wDv/jb8iYZb7cmmoNdjD6d6qOMnp35xhTkv0R0 zx57BSsUmiBzDyY1osxOiveV8vIqRv+GwpXYo+7yMJ6QV+CujXtyfQpA8ldmOFfBAGvxTs z1LxpHChxQub15lPbgj06ndVjzv7WqVAI3U3h/b/u376SmeeL2rZCsujCJynztAnJC0kxd 69ws+cHGwW3PdbvX50N/8tb0fBmxyJJXolwF7OaUd/vi6ujxGU04Tg2Jw2+hmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700015866; a=rsa-sha256; cv=none; b=UbFqeCs6bGY9VYLiiaMFWWPYBOrlAnOGp/Bm4NaezWaqNfQRuUmDVVg6g9ag+/TyAcpJTe 9tMsmqYS72hbzOY5MnoWwasf5wZL98W6ZbsGCjDXRYhKk3ZqK5YYtiEQ/xNyPP5k+UZpyV 8D0de3bvBEAiYdeChEmUte4ld05HeTBuMu7rd9l5GpU8SBq2HJMFwbE0SEUy+2ElnA5L6Q qmqqRVeQ5ZAd6cRrP0F0nP5pg5zzJ+QZonjwyge+AZ33tD6Zg+yYl2aHAVnpEcf92G1qxr nSeEYptRjPcIf3OfI52MNU6X2omZnrEfv6x+d6sdISO7OXzpvcux8GZCi4zC1Q== 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 4SVS4p4L9sz1DZJ; Wed, 15 Nov 2023 02:37:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AF2bkjC009829; Wed, 15 Nov 2023 02:37:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AF2bkps009826; Wed, 15 Nov 2023 02:37:46 GMT (envelope-from git) Date: Wed, 15 Nov 2023 02:37:46 GMT Message-Id: <202311150237.3AF2bkps009826@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: 5fc8ed931360 - main - makefs: Quiet a -Wdangling-pointer warning in cd9660_generate_path_table 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: 5fc8ed9313609fbafe505deaea253e6bde5ac165 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5fc8ed9313609fbafe505deaea253e6bde5ac165 commit 5fc8ed9313609fbafe505deaea253e6bde5ac165 Author: John Baldwin AuthorDate: 2023-11-15 02:35:44 +0000 Commit: John Baldwin CommitDate: 2023-11-15 02:35:44 +0000 makefs: Quiet a -Wdangling-pointer warning in cd9660_generate_path_table This function temporarily stores a pointer to an on-stack variable (a TAILQ_HEAD of a temporary list) into a global variable (*n). Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D42581 --- usr.sbin/makefs/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr.sbin/makefs/Makefile b/usr.sbin/makefs/Makefile index 9c690fa7e704..c0f4469d29f1 100644 --- a/usr.sbin/makefs/Makefile +++ b/usr.sbin/makefs/Makefile @@ -49,4 +49,9 @@ LIBADD= netbsd util sbuf HAS_TESTS= SUBDIR.${MK_TESTS}+= tests +# cd9660_generate_path_table adds a global variable to an on-stack +# TAILQ which temporarily stores a pointer to the on-stack TAILQ head +# in the global +CWARNFLAGS.cd9660.c+= ${NO_WDANGLING_POINTER} + .include