From nobody Wed Jan 3 17:50:04 2024 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 4T4y0r70GXz56MMZ; Wed, 3 Jan 2024 17:50:04 +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 4T4y0r5RNwz4rdt; Wed, 3 Jan 2024 17:50:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704304204; 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=jnHnYBLEzGyq/PQtCMmD3JdRnPP+XIF0wRmfV3tSnFU=; b=rSnI8xefSUqe2RYqFascV+9pfuuxRV3KhAj76TgJ33LTsYGIqJ8EJpFzncBcaXxSPYkFNC +ouGXROozOhb/svTAlh4D7E0djHbGYVQptMKqHIriPaBVQSxsTz7YslaikK2LXNgAXrbWG 0dbFRoGo3NfEY/bc2P3sjJv+f3HeZwzXjYIhGUjOzjQ742Nm5bqtqElNFEYUsRg0GTKl6j g/xs1/5vm1F6pSK2Ou+MB5GwGmA+kjBTFyT8VObx9lmMz1ij3VgiV9e32PSPBDdrn+9bnR +H7jhrySyyVTDbTcs/4ctcYkvjRgx1jXO4cwj5ZyVoTMmeaMHm1+43ki5fgTLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704304204; 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=jnHnYBLEzGyq/PQtCMmD3JdRnPP+XIF0wRmfV3tSnFU=; b=g5Uyqfvti/aQKll4bBHMKW7XnfsSyux3vrvUeYN0u3fdCMSiZqZe+GB1wPJGeE+PtjnMfN QCo/e/AltTh5RROBrmqKl4tjJVZEEXZsDkeDkWUb8Rt0MOo6rxhuTR/hi3huG7zbXEDcjx h1zv9668SlIqEOMYZ28zO8G2HoNGzCfl85r5ja+Eg+OlzOoyA4hCUC3IGDW4Kdst4ZNxxC +cbiLGdBNk+aIF+zTcElSXTS6lt9t4hWnG9QQRUXpfDfrTHuQOP+mOWLcUKWlJUxZR2Bsq re/EIMxNZfs3lANQ6Irtw8PWRXP8xDStOHBwn+Ww3T65cZWfLIK4ypSc/YyP1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704304204; a=rsa-sha256; cv=none; b=uNhN9I/aAbmlFZ68dfjI6YecQbWZ3zn3aL0TNic4LVHzxaNQL+HM+utJBfhsqASgpezmIx VpzJSDICsR8kvOhNfrJMM3vOPgTk7T8ghT0pDonQq8ijHdhs92jw82BddarDUEgsRVhbYs oQ0TNiqWmzysQzV+YCW4CrgMhjqf73Drj3BEaioStDGnqEn10qG3jRXwxIha76aYXmsQsR iE8bIKP73hcpQhh/7gkyy0sTzjCEWnwFxAM6Gs76Ht69mN/+qATsnjetMYAv1eknr/xWsA ek9sapL81+gGktiYv/GexIdrZc8imOvm0jwDAQyRWHvbcFbjuzZLjlDqzvos3A== 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 4T4y0r4YY8ztsb; Wed, 3 Jan 2024 17:50:04 +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 403Ho46r037494; Wed, 3 Jan 2024 17:50:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 403Ho4IG037489; Wed, 3 Jan 2024 17:50:04 GMT (envelope-from git) Date: Wed, 3 Jan 2024 17:50:04 GMT Message-Id: <202401031750.403Ho4IG037489@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: 23cd7dfee413 - stable/14 - makefs: Quiet a -Wdangling-pointer warning in cd9660_generate_path_table 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/14 X-Git-Reftype: branch X-Git-Commit: 23cd7dfee4131c85099ea63ebe6ebf290bc867c4 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=23cd7dfee4131c85099ea63ebe6ebf290bc867c4 commit 23cd7dfee4131c85099ea63ebe6ebf290bc867c4 Author: John Baldwin AuthorDate: 2023-11-15 02:35:44 +0000 Commit: John Baldwin CommitDate: 2024-01-03 17:43:48 +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 (cherry picked from commit 5fc8ed9313609fbafe505deaea253e6bde5ac165) --- 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