From nobody Fri Dec 26 00:22:35 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 4dcmXW46Bcz6M8XT for ; Fri, 26 Dec 2025 00:22:35 +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 4dcmXW0bjdz3Z1J for ; Fri, 26 Dec 2025 00:22:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766708555; 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=JajbeeZU0Oz1mF3URFHH6Ju7WCKogMnRgK/8CQBiPSU=; b=qck/YLnDu2K4OiC5vA2iSbWxk8tVVB/N+k4zUPoTXF+t//ZDYZfAD+woh94Qe7yro3QKv3 5aOqlH7neBoUkd/1ev6TTq4LD0jzODgEZMu/dx9hlhAADtGZ9ZLdayG+YdqKLEJ2wAt0RO twDjV6y7cWhPzT7g4T1D6rKt5ok3AbebaMAJuYl5nmO87T7EVbUJIqdWUgnnMyKwpjfmFP hoWxdbupHgBdTGaz/+wXIFmXwQ11JMSe2TBUx3aeacwGOOmMXsow7SwfbNhXftT5LrR0y8 72YEKp0xUazIQlhekR0pt17DxNV1X5qjBZv3qRyprgXCF8KxosFle4bxct9EyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766708555; 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=JajbeeZU0Oz1mF3URFHH6Ju7WCKogMnRgK/8CQBiPSU=; b=I98+gwEN68mvRHChUc1eorx33CVK5sRhdEhPTVwJsx1xnH0TlksRqv/KzZjeQoax3nB7Ww FAwiX+gGqdlx1m4gaxK5yEyMUvcGyng0ufmHkeHzMiG4qfBj17FGXJ1yWnaQVsrI06KZXS 7J37PQZ4hrJWOFsNjJsVKcXTXFYTidgm0RqMS2IiRAVblVwG09taZyAbVyfH2jt6OEqAv3 wrdtHC+Yxp4oKrgvx33zZrN6hWaB9hgoB7ZnE8scgv7pkThDNbJVlzVH2FV+TBj7/8wE9u RdkpqbXCIszr9SZWCXh8n0kupzcjklURTop/DrB74A0e84DTge77jBBJjke4zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766708555; a=rsa-sha256; cv=none; b=ZiEZFuyMl5VBFnB9OFgschRfo7D8FQoJYevyp8Oxz0jGTSZjcjB+Epk+J0WJqZ3ztmoA9I /U76b+xw8eo0WVPpolTZDB+Lt9Rg3A8I6uij2aU+R8ewgnQFZ4pIET3ZOEldAu4+PVQT+j G6qedBjnvObT4fGw0XgQKVeoelJtytkrtbTZr4GNu9038QSwn0IVEddPg0Dj5na7ZxxQp1 7QPt06pyyyIEeU5iNLja9tf5oodJ2m8f7O/7hVEs+f6RKa7a60kANeN43sxILiTYuYSuTh VUsN3kyMhX3MO/r5xLrpyeC9BqLukOg7DdVB2NgUhgoc5lRMhc3C6H0gmkPmkQ== 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 4dcmXW0CBdzrDX for ; Fri, 26 Dec 2025 00:22:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3306a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 26 Dec 2025 00:22:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: ba0a11512237 - main - 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/main X-Git-Reftype: branch X-Git-Commit: ba0a11512237681fc621670023d56195cb8c82ad Auto-Submitted: auto-generated Date: Fri, 26 Dec 2025 00:22:35 +0000 Message-Id: <694dd54b.3306a.451e7252@gitrepo.freebsd.org> The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ba0a11512237681fc621670023d56195cb8c82ad commit ba0a11512237681fc621670023d56195cb8c82ad Author: Dimitry Andric AuthorDate: 2025-12-26 00:22:03 +0000 Commit: Dimitry Andric CommitDate: 2025-12-26 00:22:18 +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 --- 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 */