From nobody Fri Aug 7 21:32:27 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 4hGy6M2h3cz6nnrb for ; Fri, 07 Aug 2026 21:32:27 +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 4hGy6M23S7z3PJZ for ; Fri, 07 Aug 2026 21:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786138347; 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=Bu4MLNVgC5VYq762tJHuYswsVD0huY7LDHiwgt6RROA=; b=fYZVPuli/iE+7ouOWm+LHfp8RD/iRgctK+mXZH9QzitH/eL8+253Q5WlMtZxtyouok6rGU U/DAj4TwecSfX8XJ3lLSAXqDUP1QEU91Sz9Kj6CW2SmlthXnJbUTWwDS6hrovfNflZC8Al Bz3E5G9AkCrWTnPZcGfjyr9OAyxkkBEZuLvG6fXbRG/9pDIW1Cir/zmeY4HLJREdhDmd29 0w+j/xakxeYuOUYS1e7g/L59OeHCpybIB7cEAT2RbuPiU4Rk7Wf23oa6Umns6jzyjBFdDE 7ZcJQdEMmIUWPAZ5Ysxr2CdcZFDgHoAbeCMsM2uNiv9tkjCEn4HO9uEvpRuMKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786138347; a=rsa-sha256; cv=none; b=EsOukcnuJouthqRv37H/5LdOYp8TDnGCH8ofJ/uFhhv1VuyaAP3yRqZNxM5QSY+GvHErtd yUpqYAukBDkVuz3NoeAHF4t2x3JICIt9s88TITYS4rFyFyrAMg0W5TKoa3Ftnnx/AFF5xN dygFJStyBwYnE0Sf4WMZ6vRAwYjLaNj6+QqIZ082BuXXlIHgLYC7pZQ7ZJa/YSKKgsaVkV Zghg68OzwOUacW5tUDAUQX7ktZdz3RBurG1ZiOkE3vsrUBMupUfYjF0QsvIhrbzloHSvz6 s99EJM/p7JpCS6Bvuw6ZhPyxaEnlXevHMWveMSCJK8HEa/DNvnIUU1+NZ+ZeTg== 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=1786138347; 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=Bu4MLNVgC5VYq762tJHuYswsVD0huY7LDHiwgt6RROA=; b=hS/Rq6SVyVqNhUYbIXjw+yl2Md8+nOU8SM5WUSiGASFdKFedsHosGwPLQBIXkeoSRiP1q1 K5TUr/kL3ZPJ40oKB5cZk+PZtjabyAWqYJfUodvAdlz8V+8JXAE/XG3WiQmkxVB6fYc8UC 679NLO5G3VtdA6k6nN1dwZpJoWDDNqZPbV19CwIH5cKb3uWsJ6CLhpJjXceuIjnCLIdQ1m kLkp/w2CkBxFWfJu+i7tQ0yKhUuu+9gIYE+tafq0HzttOoanjPlfDqcr96pJwMLvzfoZq5 hVNJVTdBbInqzv69e2b4LMqVzONJVOcw3ENVZrnUCriechkCp1E6eTUlR7wFtw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGy6M14nkz1Nf0 for ; Fri, 07 Aug 2026 21:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 23db1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 07 Aug 2026 21:32:27 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Zhang Qiyue From: Enji Cooper Subject: git: 891d63642baf - stable/15 - 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/stable/15 X-Git-Reftype: branch X-Git-Commit: 891d63642bafca88914c27130c36487c0bb22b7e Auto-Submitted: auto-generated Date: Fri, 07 Aug 2026 21:32:27 +0000 Message-Id: <6a764eeb.23db1.570926c@gitrepo.freebsd.org> The branch stable/15 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=891d63642bafca88914c27130c36487c0bb22b7e commit 891d63642bafca88914c27130c36487c0bb22b7e Author: Zhang Qiyue AuthorDate: 2026-07-12 06:26:36 +0000 Commit: Enji Cooper CommitDate: 2026-08-07 21:32:13 +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 (cherry picked from commit 64038db825d64fb4827fc8ee264ea0fa1a046d82) --- 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;