From nobody Fri Jan 2 20:52:11 2026 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 4djbV41vSJz6MFdl for ; Fri, 02 Jan 2026 20:52:12 +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 4djbV36Z1qz3qfT for ; Fri, 02 Jan 2026 20:52:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387131; 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=pC9Ye1TFwNXev1vJo6wPww1JMN2n1CFxW9RNvC4LUAQ=; b=OOIip1Crv4K+kuJViBIzbWBrMvCIOubL+lpbOvwKpMTywfBLt4b2PqB8uhzSxANvxfyqFe cyHiZoBDEB1JWAXEKuJOG3oXbbWfZ1lODjTQzq4S/1HeABXNhIyLoZfryWqyLuvcmE9Lwe q94U31TF4G0nxj4pnQT/wHHX1wilobu8ayS0zuSkhw5gi1NJ0r3xW7KLRn60q//rZsWgxV j6cBcFuf3CnswBA6jLoXm1yBjM0z5Ud0TWnkPyW49TFeHOxdof7yUbLsbidWUsovEByNSV b4Ew7bBOJwKIsVJME1U3YvXoe81BzVgIOZWcwcCGBlSp4Is+YnUOBqBcsotnww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387132; 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=pC9Ye1TFwNXev1vJo6wPww1JMN2n1CFxW9RNvC4LUAQ=; b=bJZ3kvmq1Wl8BWmF3QHV//45brINaQrfMyw9WeJfTdJKoKNXX7hKPDl+ykl1fLX3Xub12g BwHMvsj2VhySXyEi21iC8t6aRvNWQGqzVHa38ka3fFeq7AKqpW4ZkCZ/DUPZdokHBOpqvM 8a8Gr/hZF0FoqfzWhhIU650b44NxmUndExaz48i630sl4Gky0qEdtLqvejtI57ZYVT+Laz R2BmW2ds5oUDKWxHohgCVKvizQw/BClnDLCME6vTLVJ5740v1LGDtpQkwaAaFb1oBNpRJI Pw13CBc0P75pDHNESUkpXeB/pTMI42Hmh37RG8lBSlzyHaegwR0fFUjE0D+dog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387132; a=rsa-sha256; cv=none; b=u0wej5+nMjJUs8HOd6gx3Hvr5i3ILuMILGXo+q0hENdAAJOfwPmDNfRoKrkFWVQjCOiB+2 d4bHoDPEPBzc/JFWxK8m0P3iSW1zhgcEpHAhl84hMmdftuatx1Ic1154W4w6aEJQsiJhuQ 2WLQGzLeP5H6SoziHSpgyLbgJ5Rukl45O/G81gF760A4BX2S0gZtoFVK3yOMjWfi4fv/XZ J3/nb2BT6eFPC/wKIdXiRpbRgwj018IVknGjgxA8ETZLCpJ+g1vi6e4ilzsB1maeGPnsta z3WbM+OefK0Pa89P5BoIwiPAUm2MWoCZSWmvrsxM9D9P55R0VX8i4FSGFnRRsw== 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 4djbV34X2HzbDp for ; Fri, 02 Jan 2026 20:52:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a7fe by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:11 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: a7805f334170 - stable/14 - ncurses: 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/14 X-Git-Reftype: branch X-Git-Commit: a7805f3341705323f80c579173777f947bd8aae3 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:11 +0000 Message-Id: <69582ffb.a7fe.7da7ea89@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a7805f3341705323f80c579173777f947bd8aae3 commit a7805f3341705323f80c579173777f947bd8aae3 Author: Dimitry Andric AuthorDate: 2025-12-30 12:48:07 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:54 +0000 ncurses: avoid warnings about too-long initializer strings Increase the size of `assoc::from` to 8 bytes, to avoid warnings from clang 21 similar to: contrib/ncurses/progs/infocmp.c:702:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 702 | DATA("\033[2J", "ED2"), /* clear page */ | ^~~~~~~~~ contrib/ncurses/progs/infocmp.c:716:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 716 | DATA("\033[!p", "DECSTR"), /* soft reset */ | ^~~~~~~~~ Reviewed by: markj Obtained from: https://invisible-island.net/archives/ncurses/6.5/ncurses-6.5-20241207.patch.gz MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54371 (cherry picked from commit 667259b392ec0a86d066ccc6ba0f4025b3d2a083) --- contrib/ncurses/progs/infocmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ncurses/progs/infocmp.c b/contrib/ncurses/progs/infocmp.c index 7932203ac2b1..f61633cfad80 100644 --- a/contrib/ncurses/progs/infocmp.c +++ b/contrib/ncurses/progs/infocmp.c @@ -687,7 +687,7 @@ compare_predicate(PredType type, PredIdx idx, const char *name) #define DATAX() DATA("", "") typedef struct { - const char from[4]; + const char from[8]; const char to[12]; } assoc;