From nobody Mon Dec 29 12:24:03 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 4dfwPb3yJNz6MDTK for ; Mon, 29 Dec 2025 12:24:03 +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 4dfwPb1zjJz3Y5b for ; Mon, 29 Dec 2025 12:24:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011043; 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=S0ovJ/z6D+8FPFZJeYdVUFIU0a+7T0YK0/9zKFsGEX4=; b=Jdmv3vSDp2z5JWQgKMneRUD+zSJgIGXXhKS/L3WVple2oSVTm/AxJNW9R5HdYGXXKEDUfk xF6QHbMiY6Gp4dIwGe4Jno+Dq3QCutzpeei1hoSxPXL1gD5Lc4sqqAsaZOcS6hnAo8lfC9 dr1qTHX1n8TY6lV5F/rj6jjpOkNAGEM/dd/AGcV3xh2uGHqp0VX7SXocXnBgHXvZjqznAw Czn15KVN0qBQH660X2h139TEdd6aGyePAR1puBeeUQJ/JOOZLgrLheWDDiKII11sZuNItc oDcWW9ewOnpWpggLo1mY/1S27tme2Xpvd0GeZCV7JLrNNtGFIlkCXznBTpz6OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011043; 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=S0ovJ/z6D+8FPFZJeYdVUFIU0a+7T0YK0/9zKFsGEX4=; b=A9/sJ6kPa3OJjzShjxccIkqlpVL+NCcmxViCS9t70bcxv7t/mA9g/HC52Lqrsk9dPYGKDv RiJtxznWeKufXDuJXP4i+tYJaa8BH2gbiANqxX3dNOXFENHsMKLMqumTEGmn5E+bpCMsN+ gAtwy9AnpUOu2amy3fd4myigp361jzEljz3ZUDhBrRM3Z3pCMW7WvLG6ryqbkihDjaobVy Pnrs7HM/hw+v7S/HZV8sUM8SQY7AkvHgco7/bjg2WGKu+Q/fL6AdIFXfiMvWa4Rb11g32N gFvLCO3+rYOJPcCNSMnIpbriXVAbs102TFkRzrEBt3uQBs7aY1FDa6tgs0kAmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011043; a=rsa-sha256; cv=none; b=PZjrfpbLgiJKjq9z5bsRWLfUiv7GyRH7mt/iatFTBOSPGQlICsFUkXtGcVJ2jkb6aBbc3B n92lkocYwnfLKw6z4sLMj7oVheouSIKnPbzeEDI7Cln666WhB/TCMNb71ebW7CP1v71puC B6/t4b9TxmwkNa6i9LmwMlwF3RDxINCHhT6o7lTXiWdCnZmG6eVkGd1KaScgTMUP6lFMuE M/bj/TCx6GCIC9IitIHbwKt+JMp0HwFrh5eDN2nYGONDUZqAdQ+wMr7ZRqpSuz7pkcWDoH T4WFcrVNytcBL09cADQyCKKA164LPEFZKB4w3mcV9pgMGsBUo/dNKnO4fuRPsQ== 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 4dfwPb1b5KzFj for ; Mon, 29 Dec 2025 12:24:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32a0d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:24:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 8a620bd70880 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 8a620bd7088075808103639338e35f730ac93f3b Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:24:03 +0000 Message-Id: <695272e3.32a0d.4739ee2@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8a620bd7088075808103639338e35f730ac93f3b commit 8a620bd7088075808103639338e35f730ac93f3b Author: Dimitry Andric AuthorDate: 2025-12-26 00:22:03 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:20:56 +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 */