From nobody Tue Dec 30 12:49:36 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 4dgXwc2Y7Jz6Lsfg for ; Tue, 30 Dec 2025 12:49:36 +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 4dgXwc1yPVz3Qm5 for ; Tue, 30 Dec 2025 12:49:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767098976; 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=hv4lRVtiBxczeYLYPT3lLxgM8RbmAWR7NMM0SYABe14=; b=lugCzOYJfI2DmE998AXAc48YDhtKqJl4wPa73ZUqG88ATLcxybiAVfEKfAsszE3WstpPMi JU6QE0tHe05nNtA8tCYL79GKRwynF8NVSaP2k1VkAzJgC7IGnr11M0EfmzZEUwedC5/NpY ZpDitC5hMlXkX9KaJEJqWJZWh5NbpYFYioEJNN2oVOOlf/tBLsg4eRJyJ/X7Bu5AAUqbhc dLX+iyuEIlZWwuRdjobEzULJI8bfQetcYsxbY3sDtoJCW/6BpKpcgPXaOMNVCXzES7ju1S jfJuBlGg6rfsp5ww7iXEZDcpyTxjT/Qeua67jumb/9udDB7dJtahgH4S8L5PHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767098976; 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=hv4lRVtiBxczeYLYPT3lLxgM8RbmAWR7NMM0SYABe14=; b=nyMJjqpmMWVS1P1rrhjJ04Lck4f9I9gs+CByN69NStp90mp2HX+O40kS7+feUrTlhbMcB+ ZVc0T/b5p5QZaaEX1cO6Zffw7v2K4uqMbbIuS+9zcVQoN5LeISPLMOTauR/3xZBLct734W 7lzfN+8Fo44MXs2XJ0GOFf4RkyMVWqHd1FfaeYhj0NqsN+gfDUOf9sDDatNpo8ayiGt9US JYt9AnSuqtcmZLL2jsQQ1Z6qQqBxHiuO9onM/qaEh3Ybuc724MU8yoni0tKwd3lsaKbp/D rnu1rS6MJ7abqCv+6OJ9Wg9pcwK40q3pdmOrHoTEqjYU5nEzOLf50xjl/ecyMg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767098976; a=rsa-sha256; cv=none; b=aa708A3Y5tVUO4iI0v1qo5qLjgoyRAd8lM94l6ya1KEdlHDlHC04XVYQ84vyfW+fV7WQc4 CCj0F6nZkzLZ8WjnrjpnnVwx2BxF5xPshTG3B2GlOYuuqkVILO81d+oRbrDLf78QaDfryy QU7aY7blF95CPggbgLplUIcBBwb/jA8XtcarC00DmSJ9/4SCf02eIgroS2FE0XrkB8qyOO qJsitz5ezLH6gahJC7HXSEkTEEY6fHSom97pcjTlOD9/Rwkz5rxr6IEDH94pmV3/RVKK02 nEjzY6P+5Rbz8nEM9zGXjcu8BFeeViQbCfoZG7SR1acE9801L5WRsPNVkN0KFQ== 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 4dgXwc1SMZz11fH for ; Tue, 30 Dec 2025 12:49:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 392d8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 30 Dec 2025 12:49:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 667259b392ec - main - 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/main X-Git-Reftype: branch X-Git-Commit: 667259b392ec0a86d066ccc6ba0f4025b3d2a083 Auto-Submitted: auto-generated Date: Tue, 30 Dec 2025 12:49:36 +0000 Message-Id: <6953ca60.392d8.2ff7c69d@gitrepo.freebsd.org> The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=667259b392ec0a86d066ccc6ba0f4025b3d2a083 commit 667259b392ec0a86d066ccc6ba0f4025b3d2a083 Author: Dimitry Andric AuthorDate: 2025-12-30 12:48:07 +0000 Commit: Dimitry Andric CommitDate: 2025-12-30 12:48:56 +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 --- 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;