From nobody Sat Jul 25 16:32:14 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 4h6r3y5kL5z6lhKl for ; Sat, 25 Jul 2026 16:32:14 +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 4h6r3y4Fpcz3Cw7 for ; Sat, 25 Jul 2026 16:32:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784997134; 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=44PKWJrtCZZJWkjq7K1axRpnoXsn3md/YPqcIW61/N4=; b=dhuGi+uKjr0/trzztR4GYUaibue5/RibHrpZYRm7YyW82o5Il13Nm2kbNh1XJNuWaY6/O9 S3IZaLKg9Z5C1iKw+PVhX0RGbGVYjHCmrPV5aoi9slH4yF9lj+4xGt/q5O0C0RyUPgefSU DDNXc/qtjrgYLnjGQOaHGx4oigb1YhX1n9q5wkBAhlTqS863bUClbfSqaW6Lf5Ava6bKZF jb3CKHc6f5b8OieQpyWJrh2VW9Woyyw3vbiVfMxsJ7qAgpxwP8O8n0NiBrD4Mq7fNpaIqw Ug8Y+HDNqS1e2PDETndEy+3utTknWg44nMursYM01P1y47TDnyS+iASpTWVNzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784997134; a=rsa-sha256; cv=none; b=VMyWLZ4hi7w6VY8mqJzjvgW3osnM4L+5+jdfzyjXlD6yBOeHzRMtpNCH1gSp5qkKVkVbSM zyyvV5CUZ6dV4FLsvAuTFuONjjHRpsdHSufiHOhdVvMbWwHxAAqwBqSLnna+RSedtI5Bn3 85IwFzAEJwyUGoUszJDKwpQP7V5jEeK/O0kQYLFFQSKS1qOBOTZOUqUfVOzBvztlcZqfRb PxnDuE4feOXCXmGarm5f9G0Yhe9YWs69yL/zc+PK/M1ILADmFHPOAc0c+WcIGlRl6dm2Hj 6o3Q3S5z+OwZp81jUMbCjGh05I3v07GLg/73LYGGoRL9zSd7SARsUvNn2VaFjw== 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=1784997134; 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=44PKWJrtCZZJWkjq7K1axRpnoXsn3md/YPqcIW61/N4=; b=OBxV2/UljIsVkF12gcBEkSA1uIlKCgrxM4/pMk8AKxHd6pAdUplo8LRad/O78W60lNDR+4 l8nyZdEQ0Zstw/P9YCD5E0HKqhH0GB/rfrI+irg5CDoBwUNV9Uu29Hg2e9e2utXJWAl4vQ NWwl9GHm6zIr/vW3+/CFenlcD1OLwYlywesrN2CTB4fgp4F2QybxnTvGLvU4dI8QTyAQ25 b8qutECExsSsAi3jLn2mk53ZPJPBS+XndXbuzV5uFewmq8kwjKtmXrbajrEKLqJg46eDCa D8m2Ceiaz9uOeos1Jr+JH/oA3X+wAjj4QDMVTeDETWz2zzkgeP23HnUTmOVbwQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h6r3y3Jqszl2Q for ; Sat, 25 Jul 2026 16:32:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c14c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 25 Jul 2026 16:32:14 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Zhang Qiyue From: Enji Cooper Subject: git: 64038db825d6 - main - libc: tests: add static to resolve -Wmissing-prototypes 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 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: ngie X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 64038db825d64fb4827fc8ee264ea0fa1a046d82 Auto-Submitted: auto-generated Date: Sat, 25 Jul 2026 16:32:14 +0000 Message-Id: <6a64e50e.1c14c.b5573b5@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=64038db825d64fb4827fc8ee264ea0fa1a046d82 commit 64038db825d64fb4827fc8ee264ea0fa1a046d82 Author: Zhang Qiyue AuthorDate: 2026-07-12 06:26:36 +0000 Commit: Enji Cooper CommitDate: 2026-07-25 16:29:28 +0000 libc: tests: add static to resolve -Wmissing-prototypes The function create_staticobj() is only used inside this translation unit. Clang produces a -Wmissing-prototypes warning during standard buildworld. This warning will become a fatal compile error if MK_WERROR is enabled for hardened builds. PR: 285870 Fixes: ee9ce1078 ("libc: tests: add some tests for __cxa_atexit...") Signed-off-by: Zhang Qiyue Reviewed-by: ngie Pull-Request: https://github.com/freebsd/freebsd-src/pull/2321 --- lib/libc/tests/stdlib/libatexit/libatexit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/tests/stdlib/libatexit/libatexit.cc b/lib/libc/tests/stdlib/libatexit/libatexit.cc index bb286c97e421..7c5a7126d178 100644 --- a/lib/libc/tests/stdlib/libatexit/libatexit.cc +++ b/lib/libc/tests/stdlib/libatexit/libatexit.cc @@ -44,7 +44,7 @@ struct other_object { } }; -void +static void create_staticobj() { static other_object obj;