From nobody Mon Jun 29 10:11:17 2026 X-Original-To: dev-commits-src-branches@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 4gphrQ1Xn5z6kN0p for ; Mon, 29 Jun 2026 10:11:18 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gphrP40lWz3cSV for ; Mon, 29 Jun 2026 10:11:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782727877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rVo09qlm98kBaZxJD+dxHrgdeEBnY5ZBqPD1UhZqPm4=; b=c+R6w+c9TJMi0j7KVF6Iua1FtvOcq5N47xuqwojHUKAASIYygmLPLOYEuZh/vRL3tA7S5Q JENRideLfFxgM6QS0r5rhkDsBCIvgbRMAsWhFdlUYNJtOwfFWVli8D/K6IoxwKIKBW9LCs 2XBcPya7tbPsKV/q9KkawWfvbE03ytHGZY/GkT4la/j5UfXGU2vdjBq934mDy22NYGQhuU R93gm3maDlnGAPKC2mcTVBnV07pYtRmcI/Jzn19PnfzkzPV2HFTw6een5MrpnG6h4D+5Vx jkKqxztxvl3lxXOSA/XFKjKKTLVSkA8W+BwvrLQcWT87JunO0jHmkeL82Bt3Iw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782727877; a=rsa-sha256; cv=none; b=Ow6Ma59Gd9KGE90bKMVx4zfmKdcg5C253tmB0PPewOLfTXKRVg2N4dOYHSCDxAn5CVPCvt EKVcvWarRKbgJ6XrhAun+OrEP4I/NGC7PycMN9Th9ZVmaEr2opYwHzgHtwj58eKfLvwEr0 u2LJpLKouUClnLCAr2bfc36nIjMAdp1QaHu3FkNMKGICp3/Pje5ethPacdnaKjecRbpiEJ 4x5H8pmoGhT0VOeysVKA4d7bVrhjISLOmepRi8xHrdUjTjrVpTN9BWSepshuq06Nvf+1K1 iYpNx9D++uS1lPE7RfyUVeHYiS4EWHg4dBwDcDBotbDTKomym2fw7h466CPYeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782727877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rVo09qlm98kBaZxJD+dxHrgdeEBnY5ZBqPD1UhZqPm4=; b=FjTftt+09xGtFV37U0xKFfd7BqYxOvNG8yRaAIiv2DWUnVZp9j8aRZy6HbVDksJyMfpl9w 76gI3H+3aanIMvRDA/6UFRO0CRfrysiuDnAqVkPuCnofaSFL9KJLthCTSAJ3FVGL08o8W7 yWzDPa0aL2Eg3HKZBMCADyqHdI/SxH4O9m6M5WqhnkIRSMpI+d+ovnMmMs+NN15Y6fGIBc /n9BfYyqPym3g+/GvhNUDgy10nScFGdmARBOn6DK5uASR8nEr2wp5jgeVmoYG8exUeSSn1 wGzDxtu6mbo8nd+JK7L0urRmzbocHjTUPdl5duT0YmsJUw5qkwQDLxmEwj6c5w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gphrP2pcYztL7 for ; Mon, 29 Jun 2026 10:11:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3764b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Jun 2026 10:11:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Faraz Vahedi From: Robert Clausecker Subject: git: 54dab51ee8fb - stable/15 - libc: Restrict the static_assert macro to pre-C23 modes List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 54dab51ee8fb8e3c6d36117272c5f7fc6c7f0874 Auto-Submitted: auto-generated Date: Mon, 29 Jun 2026 10:11:17 +0000 Message-Id: <6a4244c5.3764b.286abb46@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=54dab51ee8fb8e3c6d36117272c5f7fc6c7f0874 commit 54dab51ee8fb8e3c6d36117272c5f7fc6c7f0874 Author: Faraz Vahedi AuthorDate: 2026-05-17 20:47:49 +0000 Commit: Robert Clausecker CommitDate: 2026-06-29 08:23:02 +0000 libc: Restrict the static_assert macro to pre-C23 modes Signed-off-by: Faraz Vahedi Reviewed by: fuz MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/2203 (cherry picked from commit c5c7d18d011830088a2134e1be32f610f1f3e797) --- include/assert.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/assert.h b/include/assert.h index a3dbe933e18f..a089d7b79915 100644 --- a/include/assert.h +++ b/include/assert.h @@ -72,8 +72,11 @@ * C++ template parameters may contain commas, even if not enclosed in * parentheses, causing the _Static_assert macro to be invoked with more * than two parameters. + * + * C23 defines static_assert and its obsolescent alternative spelling, + * _Static_assert, as keywords. */ -#if __ISO_C_VISIBLE >= 2011 && !defined(__cplusplus) +#if __ISO_C_VISIBLE >= 2011 && __ISO_C_VISIBLE < 2023 && !defined(__cplusplus) #define static_assert _Static_assert #endif