From nobody Sat Jul 23 08:58:11 2022 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 4LqgFH5WCxz4X6vK; Sat, 23 Jul 2022 08:58:11 +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 4LqgFH52pxz3cdT; Sat, 23 Jul 2022 08:58:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566691; 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=y/Z7HDi0ddaUmk3HGEy4Let0b4b2mXV5WOwTNCXSMJY=; b=iY3a9Bw1uyzZAOUAspU8idJxF2E76qbHGrgYaVqpoG8RF6P+PzGjMJ7MUWUYzniblB99r/ E0Q+ZJH3zwfWzXprTj5QnI4GOXOsJ+w4vpFilymaLp+J5/Amgv9D8EjSOlaET5FNTKywXT qksPkiBVUqCKNwby/ytfwgcmEoGsX5M8of9ejDD7b51i60qFdiShIfvM7PUruFNF8fL9R8 mFFA0SVvNhKiETVK+7CofEM/e0l/vz3d774TyZjexAqQ6V40ZwuyfeuQeNJ3rFfP0d4HeC eRSX/g/wFgiirLUM1Wsfflof2TlrHcMRobgkuhKAwqQhr1JDOqGI7EJ89Heq/g== 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 4LqgFH48gCzYqk; Sat, 23 Jul 2022 08:58:11 +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 26N8wBmF012478; Sat, 23 Jul 2022 08:58:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wBtT012477; Sat, 23 Jul 2022 08:58:11 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:11 GMT Message-Id: <202207230858.26N8wBtT012477@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 0eb3522fd22b - stable/13 - Adjust dtmalloc_unload() definition to avoid clang 15 warning 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 0eb3522fd22bb321e003a8b485e68141c3a9434a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566691; 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=y/Z7HDi0ddaUmk3HGEy4Let0b4b2mXV5WOwTNCXSMJY=; b=JToElLBDdiO2Ly7Xy7Ou6+gWRXemmfBdWZwG4wUyJTfCRNr/Tb+JEEZl95SViEOaQpo5DF TeJiW6eR9EqFT3cJYqO1yOTvLNVp+52ZQc4xF3LR8QoUHiR4CowqeUQVXnO1/p1HT8HrHg XxZEqE7sl7Vni0XIOdkqM7L61zBpzb+ZmjdYL7Q51ztCc/Sp5Ux8HBOBRMcl9kyCBiir0i LuuAjCvt7V+YrBYKSAat0QJrLJy4rYLzbzCV3JMXkDUXjRPY44Uv5nh1wr6iMHYEYf9sBX PA50HiKbu6EfDPx70YRTxS2Ppi0LR2/ehiAov1wv2de2nS/gnS9m6NNRPiffrA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566691; a=rsa-sha256; cv=none; b=hMdbHun5tTLuc5uN2rV3nGj1Arj7NHK9mtHgghseUohSKl5RU3/KQ+7HDBGCocEU5BauRn 3esGL7B86cAwo/NQH8ivtKo9eMVOkUexp/qdfjvG1fNtH9/oI2s3R/lEtZAz/BvHQ+bRGu 7DcxmlgZE2sAeMRp4GYNGHQQqoLyzBWEVVpM4oV71NhNvH0w6q9GjuRAJsncbqsThSTcyI ipbBhFggIbEWaAZ4tI15b9oV2DB10sP15C+dfnsMDlOms6Unz7XOSnFFDu8fzF3anS21X4 ogEGBh8dKr/qM0mkBXfL/MM61gw80KKQA3ElRGLL7zljk0eW2jv5g/f0WBi2YA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=0eb3522fd22bb321e003a8b485e68141c3a9434a commit 0eb3522fd22bb321e003a8b485e68141c3a9434a Author: Dimitry Andric AuthorDate: 2022-07-19 18:24:41 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:56:43 +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 (cherry picked from commit a0c55bac79ef684db5f3645fdc1e0fd8da827985) --- 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 3f584dc0860e..3f7cafe07893 100644 --- a/sys/cddl/dev/dtmalloc/dtmalloc.c +++ b/sys/cddl/dev/dtmalloc/dtmalloc.c @@ -186,7 +186,7 @@ dtmalloc_load(void *dummy) static int -dtmalloc_unload() +dtmalloc_unload(void) { int error = 0;