From nobody Tue Jul 19 19:13:43 2022 X-Original-To: dev-commits-src-main@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 4LnT5N0JWzz4Wq4G; Tue, 19 Jul 2022 19:13:44 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LnT5M6nSfz4FnM; Tue, 19 Jul 2022 19:13:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658258023; 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=J8VSzUx11L2w7NJjp6gZDChpKWwC1vhhoYH59j6KcJ8=; b=oxMTYV9mMdyFi7RqckzzdhXU8Rq77ezIvGdSm2ngEQPhufeAFmwEM4+VGw2qpB8/4vZRs/ HbMts5rwjUHxjVndCxY6WKJc/LuIWwSAm3/Ln0lv3dsUSFP86uS2Y9dH8qMmc42CtCSUFX G/e0vI95Hj8ijZZJIeS6+U/CEdiarETmRCv5QVrYDSOLgGNzQNAPuVOWF6McqDOCGhIHQn k2D92eU99ZE/gbNOCaghjXf30z5MLA+YbB4J4Fwo1D8UxLVZBjzEcwfcUr+Ip2ZznZszz9 RbHcwRrMIGe6+snhh5keGItRKOA6jL2XT/xXCznQmJd1H66w+/cKM0CBxpUqvA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LnT5M5rybzVRD; Tue, 19 Jul 2022 19:13:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26JJDhT5072301; Tue, 19 Jul 2022 19:13:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26JJDhx3072299; Tue, 19 Jul 2022 19:13:43 GMT (envelope-from git) Date: Tue, 19 Jul 2022 19:13:43 GMT Message-Id: <202207191913.26JJDhx3072299@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: a0c55bac79ef - main - Adjust dtmalloc_unload() definition to avoid clang 15 warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: a0c55bac79ef684db5f3645fdc1e0fd8da827985 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658258023; 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=J8VSzUx11L2w7NJjp6gZDChpKWwC1vhhoYH59j6KcJ8=; b=PdYoFBxcYPgRTs5NSs9BpprwFJW7CbuZY6IHHRrijwVoPIG0EaeaD3nNWDMq8fWUp5ZwZE HokGW9bbml54UY+cgAn8OmfVDLclXVo907B4sW+cdmXu+zJPixOz8aHpraq0tntyMIdM08 3fihzkwiZeXiXX84Zr9LjChQKvNo4G2ZmQv7SXXh28zf3fwxjbhnQkufF3xVu/ZQa/YUSK s6eiHCuseUxB3his3kWxigPPdZyaVyHS2w7aX56Ild9hCWVpYRihQlTgQmCBfe32KPdqws 2VEULDJoV1MlwjREHZwz+ivfKDLbcQkTaPuhZ8wItUElKcJBM0hYXsokCjMWTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658258023; a=rsa-sha256; cv=none; b=mpjqWa4VPcrP0p3KUkhUxDpV+EcTmoH87afSNx2fEbuBGTPVetZISQMEZkhUvoenXzSZQQ SvhMCufmtyhjVpkdtG7j8DVaVR1e5Hvl5AtaWj6EZw9f0aW/eMZG4w9JLYuY9aBAZoIBh6 ATko1nrf+OHiljDMu3MvJ5ixiv9qp010wjtKTVo624UFipK1JKsCog4VbhSy5cQDZHEPMx RZ5GUGyzRx8wHN3+1FlIdt7cheGwx92E5WY/w3atW8djsd4uFxxN5D6IxJ6SZpQftlEzhx +piSN068H0iq3bAmOb36g9MQ1LY+3bVr0p33Er2o/OxaL1jxtvPIUVs2uzu7dA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a0c55bac79ef684db5f3645fdc1e0fd8da827985 commit a0c55bac79ef684db5f3645fdc1e0fd8da827985 Author: Dimitry Andric AuthorDate: 2022-07-19 18:24:41 +0000 Commit: Dimitry Andric CommitDate: 2022-07-19 18:37:08 +0000 Adjust dtmalloc_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: sys/cddl/dev/dtmalloc/dtmalloc.c:177:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] dtmalloc_unload() ^ void This is because dtmalloc_unload() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days --- sys/cddl/dev/dtmalloc/dtmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtmalloc/dtmalloc.c b/sys/cddl/dev/dtmalloc/dtmalloc.c index ae21054315dd..cc6d55eb73dc 100644 --- a/sys/cddl/dev/dtmalloc/dtmalloc.c +++ b/sys/cddl/dev/dtmalloc/dtmalloc.c @@ -174,7 +174,7 @@ dtmalloc_load(void *dummy) static int -dtmalloc_unload() +dtmalloc_unload(void) { int error = 0;