From nobody Mon Dec 29 12:23:16 2025 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 4dfwNj04mjz6MD8r for ; Mon, 29 Dec 2025 12:23:17 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNh51hDz3WvG for ; Mon, 29 Dec 2025 12:23:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010996; 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=dP5Tjq+Q6jlpA6tkTUA8Bu/63PFhDDZUI2Kwg/3HiFo=; b=w7mNdhNAF7r14feNG30hzfyNu5JcryZj10XH74BcClcADD74ypmJilj0b8xNxzoB7EKykV mc1AVFScFZ/BPPeLyspdZMeqRhrkVJ+cFqEGHHXdrUYesqCSukoU1D+828/0rqHwMI2O03 DQsTri50LHZddBdZFFZqHL6p0qPQ0htYgIDv4JfTtvxn3hplg5rMDMfrNfnuPArXsoGbdl rIuLFIcqAdvXP6jexGh4vCJHE7XdtAw8Ru68HkB+wJr+t2nE6kH2+qFfz62N4noAQDlncR SHA3T/zDgQqOMYiipaVYvuFY55UIhvBFMzOWd0zrYo51iWoUw+nphwUam8k27A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010996; 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=dP5Tjq+Q6jlpA6tkTUA8Bu/63PFhDDZUI2Kwg/3HiFo=; b=Fb/kwtvJ3qKNEZW1bVb2XFlRatWmg7w5dcyxT9QcmYYS1AISGLPLpyprU/4nelaos9r/sa rSOE0lcS6F45K+WsPyHQr8Tamwt9d6tMXZNR4X9LTtSXPzkTokXlTDQfNJ88oOglfw/QI4 zKN9kqtt5iDoPQEsKSSnOKKc4Y76xLIPdwzD8pdowEegtkWM3UbJmboU78psB5LpW6oKlz DU4iBiclHr7uk7zVILy/wMpbVdqno3wQx7SzRDKAx6NSnA7ClSpyXC+ksdXg8yFGm01kJ0 grZBdcINZl1/3tgBlm6LY+unlN5+pb4bgho+JjLLaLQ40EU9pJT7U5UzsWD6Rg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010996; a=rsa-sha256; cv=none; b=AEPmcf2JQkq3Owot43HlUrDXP+W6pzqfRp6Y5vzCafYhwMFH0fUNG8l3dLXKDWvkYtiRjC jMDH2odY1SwP8FJlBPdzt7y31iPTSJFOXnCsBTAgx/lYnDM363Rte0W6hCt4uautDR9LCH QQh3MEK3jqTKCi97lk+s7hV9hb8l+OXRFClLtwd/QVIBr7BD3yNBEej0/0mNh/TN2gfAuK mix7nCsz6hIPVcPwnCL1kks7QZI0Wqo8oqYf0nu4yYdbmIy0PNFOg7i4ICDIssCGrkMj84 mVlW4rZBMln7mliC2rGyHkmZb8zy/gJpq2Re7ZdWSqIlNreH222/Yg1d4y81qA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNh4bDZzHc for ; Mon, 29 Dec 2025 12:23:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31ed4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:16 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 0e8b2ab13317 - stable/15 - makefs: avoid warnings about too-long initializer strings 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 0e8b2ab133172da471d6f817a4ebc6bdac15a09b Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:16 +0000 Message-Id: <695272b4.31ed4.49a64d44@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=0e8b2ab133172da471d6f817a4ebc6bdac15a09b commit 0e8b2ab133172da471d6f817a4ebc6bdac15a09b Author: Dimitry Andric AuthorDate: 2025-12-26 00:22:03 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:20:50 +0000 makefs: avoid warnings about too-long initializer strings Mark `direntry::deName` as `__non_string`, to avoid warnings from clang 21 similar to: usr.sbin/makefs/msdos/msdosfs_vnops.c:512:4: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 512 | { ". ", /* the . entry */ | ^~~~~~~~~~~~~ usr.sbin/makefs/msdos/msdosfs_vnops.c:522:4: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 522 | { ".. ", /* the .. entry */ | ^~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit ba0a11512237681fc621670023d56195cb8c82ad) --- usr.sbin/makefs/msdos/direntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/makefs/msdos/direntry.h b/usr.sbin/makefs/msdos/direntry.h index 9d6c65dfcc7d..675a70e26474 100644 --- a/usr.sbin/makefs/msdos/direntry.h +++ b/usr.sbin/makefs/msdos/direntry.h @@ -55,7 +55,7 @@ * Structure of a dos directory entry. */ struct direntry { - uint8_t deName[11]; /* filename, blank filled */ + uint8_t deName[11] __nonstring; /* filename, blank filled */ #define SLOT_EMPTY 0x00 /* slot has never been used */ #define SLOT_E5 0x05 /* the real value is 0xe5 */ #define SLOT_DELETED 0xe5 /* file in this slot deleted */