From nobody Tue Feb 10 15:28:12 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 4f9QSF1Nf1z6RVWk for ; Tue, 10 Feb 2026 15:28:13 +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 4f9QSD6MKPz479S for ; Tue, 10 Feb 2026 15:28:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770737292; 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=kpS3TcYWbhcWxY/gd5OtMNlaRZ3vHJfSNcLiRfNhagA=; b=k8Vbxs+ASgpC9b8hqdZr3cjjvSNUT4hnj6dzT1CaFQoLH0uVCdrtdmmnUnkbNtrPFimQ4S afCempb5q+472EgAr8ht2UeOfDgaGSCnIDIDBrNhx4Ure08PHJefzJZslf+cN2BbosbYYS ByngRWIQ5Op9moitDT8sII2BkX5O5ydXFPY++kxt8d7QoQ/7jI6Xpz3SLm17rKL0I3+RJi Dlt1JSZarnms/DTOrH7qwfL9b3LqR/tN7yDAp7MChIpZrnYAIiPl9zBTMbT7kei8YfUbfR urWVSy7Tc/dpAYrkU5K1TlMAwCMs9mmSU303qtzzDfaUMjXqVrZbEY7H0uHuVw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770737292; a=rsa-sha256; cv=none; b=sg/IUXak6epqnNQucIuSAN1ltPC713BI3ZjW55U5inREt7JD0sLEl513CiAqkvikRHZAAO ycraf/punJAthcK49RVzjwA/9AJAfss3p6na4+YNnSFe17l0PTKBZm9wQIUZfUsR8P6yuY 2g2zPzRQ9Wxl1TC86Zm5Mp0rHDqIjimEBkg6+r2WoAcUjLIbShwLnyEtFGmP7Wub18Q2Nx fzWwDTSTt4L+RyWQyROv1PBt49vRrRMib/lfiW72r8+0y6Nc3DmtzH+DN5QkRQf5XshXoV zu4ADGQ4TvU9jLoPYM4KHYiD9Z6/CcApYBUDnXphSbjNIqiWOSxLEFGKnOJtjw== 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=1770737292; 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=kpS3TcYWbhcWxY/gd5OtMNlaRZ3vHJfSNcLiRfNhagA=; b=EzrxiFYH1coRHvrz+3mlWB1lA7CCtZDTP53+MzEuQ0tQuinvXDgffH2Y62pkeyuhn88O7o bQWJuRXtB1vfE0WvPBkb4TBbJzMM1snjTzpFD4Q2Q+LuDXsyELJpTQRwH44jZUu+HabhZ0 17ol70vKxR8oPKAHa8025c0UDM2/ztVv6OyPCBezU9JNCo/x+ddZmVTyzG5Ma554tsbAtb 2xyR3LMzXRybgQd8bZLv/GC0OMhZgeQ5cQu8TExIQGncrYwP17cpw0Yy1VXj2FDxq2TX1P S/QTmiwvuVogjvlDA0hv5ZMOB62duRPV1wAdBHRbkkYiCFUwVhdpze7JVUeZEg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f9QSD4m8qz1NTv for ; Tue, 10 Feb 2026 15:28:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 43ff6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 10 Feb 2026 15:28:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Konstantin Belousov From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: 9748212e619b - stable/13 - include/stdckdint.h: make the header compatible with C++ 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 9748212e619b7608ac50ad6d0a768b20d5c9fd0b Auto-Submitted: auto-generated Date: Tue, 10 Feb 2026 15:28:12 +0000 Message-Id: <698b4e8c.43ff6.32072bce@gitrepo.freebsd.org> The branch stable/13 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=9748212e619b7608ac50ad6d0a768b20d5c9fd0b commit 9748212e619b7608ac50ad6d0a768b20d5c9fd0b Author: Konstantin Belousov AuthorDate: 2025-10-17 03:49:14 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-02-10 14:24:30 +0000 include/stdckdint.h: make the header compatible with C++ by removing the cast to _Bool. The _Bool type is not defined for C++, and the specification from the gcc info doc states that the return type of the __builtin_{add,sub,mul}_overflow() is bool already. This is done instead of including stdbool.h to avoid namespace pollution, since defining bool from stdckdint.h simingly is not sanctioned by ISO/IEC 9899:2024. PR: 290299 Reviewed by: des Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D53149 (cherry picked from commit 3c052bec12fcf09f81ba0760ebecec38e196d332) --- include/stdckdint.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/stdckdint.h b/include/stdckdint.h index af3074dded89..9cb877fe8198 100644 --- a/include/stdckdint.h +++ b/include/stdckdint.h @@ -13,7 +13,7 @@ #if __GNUC_PREREQ__(5, 1) || __has_builtin(__builtin_add_overflow) #define ckd_add(result, a, b) \ - (_Bool)__builtin_add_overflow((a), (b), (result)) + __builtin_add_overflow((a), (b), (result)) #else #define ckd_add(result, a, b) \ _Static_assert(0, "checked addition not supported") @@ -21,7 +21,7 @@ #if __GNUC_PREREQ__(5, 1) || __has_builtin(__builtin_sub_overflow) #define ckd_sub(result, a, b) \ - (_Bool)__builtin_sub_overflow((a), (b), (result)) + __builtin_sub_overflow((a), (b), (result)) #else #define ckd_sub(result, a, b) \ _Static_assert(0, "checked subtraction not supported") @@ -29,7 +29,7 @@ #if __GNUC_PREREQ__(5, 1) || __has_builtin(__builtin_mul_overflow) #define ckd_mul(result, a, b) \ - (_Bool)__builtin_mul_overflow((a), (b), (result)) + __builtin_mul_overflow((a), (b), (result)) #else #define ckd_mul(result, a, b) \ _Static_assert(0, "checked multiplication not supported")