From nobody Fri Jan 2 20:52:32 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 4djbVT1yzqz6MFhd for ; Fri, 02 Jan 2026 20:52:33 +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 4djbVS1v8fz3r1q for ; Fri, 02 Jan 2026 20:52:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387152; 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=Fxt+B+Gz+kvubxNDRvNtI8GdiPQlnaR20Qrxbgy7iUw=; b=OXpV1sYNHa/g1x/uoH9s7AjtZZRJuQJaxUzh0Rg+udU17pgT6lfngBMB7cMd8h+Kz40YOa ewFO/uGti76523204nFcrGhUplDu5dmhHe/n6mhfK4iPgqVh1csFsCDAxn60ia7gs8wZ07 AI3z/K7ZbPJGp7hIaUsCznBQBvKebO1vy6cs9IRZSPqqzggL2Gz3Ivh9OJqECl1NUVfegN wTm8eKxRMmEw2FOAncqJzQIN1u0ZQ9dGbLWweYzz2VnTgvlvsQNoBlhFbftE51xeMw6Oxg Lu9CxuyV3v+C7QDIbptOJjToOgfIVPv0g8HKIuI3+RXtyQUZt1NjKjc/5pA84w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387152; 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=Fxt+B+Gz+kvubxNDRvNtI8GdiPQlnaR20Qrxbgy7iUw=; b=IkR2Nh+dygFl2/zba+ghRciZVDG+CcWH1SVfkHnT27m+3QhTVHI4blkwgfgNtWMRChIhSZ MiQPOnKHedW0i0eAe9lnR5jaw/kAg2TDmt6VyhpopgmpY5BqmcVuPintPoCC1PpDx2vqbu FzfVWA8YvCy36er2NMjkL3HDFz1Ejfr9gbDP9jiJVDv+D6e2JVC+DgCBucmw/cue7mWkIV iGxX4FSKkB1CJ0P6B/cRBHV+t7NP8R/FAJu7Ro4aJBx3QuIcq0g4RweRiJagQFmqGXmXkl LAMlJNxcrBhf26WvXAJnxQWO60NH3UV/Eea1EzynH7RLO3I8emW8bku8Whmwuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387152; a=rsa-sha256; cv=none; b=kvP60h/TYX3EMupqvFD9dyLt+GXMsSJ3EsFAVKxRxEwWmiV7IR/goJI2Js70DEP09d+Njd bzjPALNjVaifhiVBXfAAvFNhR6UukmUrfvDLzysQQrKkdEU+ZcpbeKe1RAf6tORrP9X1Uc WGdFIYg+qms8eF9Z8+P9sNm8C7NuZ5QQSsbs7E1pWW0HRXtb8IDDLrWZp820cCjt7H8VP1 WAK5CMsUcDB3aRxUUS+DxOZfd2yG0eTwzSs1VHdzfG5JeGpJyCK5n8AL1bnsq1SUpK/Axt RY2wf0AxWavnwmkvfNcERkIRZquCg/AzhhEa8/Af/Aa/O4ZrGbma0QbEqPt9jA== 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 4djbVS1CVrzb3J for ; Fri, 02 Jan 2026 20:52:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id bd1a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 936112e7ff70 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 936112e7ff707e3a9cfdbcc3737bed580f400d6b Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:32 +0000 Message-Id: <69583010.bd1a.1ca2e1f5@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=936112e7ff707e3a9cfdbcc3737bed580f400d6b commit 936112e7ff707e3a9cfdbcc3737bed580f400d6b Author: Dimitry Andric AuthorDate: 2025-12-30 12:48:07 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:50:13 +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 f42ff3416ece..92a56b01669d 100644 --- a/contrib/ncurses/progs/infocmp.c +++ b/contrib/ncurses/progs/infocmp.c @@ -660,7 +660,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;