From nobody Tue Jul 19 19:13:50 2022 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 4LnT5W0cwtz4WqCr; Tue, 19 Jul 2022 19:13:51 +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 4LnT5V5XlSz4GW0; Tue, 19 Jul 2022 19:13:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658258030; 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=g6HV1yIhXZqRLZGhp6Q0qAm6ObbqkwRTykVNLXj8b74=; b=nPB30Jh9zJ0gSUyX8aaumgaXhfq5Wf5X2Vh1hv66BSfDDX4BBwvPUIN0zWu7nK8FLQQyot F0/wzu1tN0dKok2onWeEzlbtOhhnoXSKTaJkdvjiJyqpqVX2w6nBFh8GilU0EZhq4FPxrI j/Lgk6eFLvND7qYmdZh8qu9/fW4hCXutWSAL6I9W19Cme9U++tEPqEyHX5hMm4KJzxKjgh SyLfsevJJU0C4Fka4eh0gTz2RVAXEzCruToMoQtIyzo0XJ2tkW9xmML36DdK3bMzy9o8ph S10I6Wh78X+BxHroYtklsz65eqvAN8v4FBFj9xddzA+W34nyGs9tMkAVFoncRA== 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 4LnT5V4dggzW6M; Tue, 19 Jul 2022 19:13:50 +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 26JJDoVL072455; Tue, 19 Jul 2022 19:13:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26JJDoVq072454; Tue, 19 Jul 2022 19:13:50 GMT (envelope-from git) Date: Tue, 19 Jul 2022 19:13:50 GMT Message-Id: <202207191913.26JJDoVq072454@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: 6f5f44562a72 - main - Adjust dtrace_unload() definition to avoid clang 15 warning 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 6f5f44562a72e739a39057a4661a56498e4c79b5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658258030; 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=g6HV1yIhXZqRLZGhp6Q0qAm6ObbqkwRTykVNLXj8b74=; b=blcpM1eBfAL/qQTtnyDRqKmfykORuHthXXgW0yoI3PXZOWQj3AVKRPptxMktgcMYFJCK+/ k3XCjgOezO90zfvFLEUYwvoj0st0Jaw3zD2DGO2IdGgrlzF7VYIX+dpzNdTc7SjhbyzKhJ YPfahw3BQfC0HyBu8bw8uh7d5jF/JMu1oiaUTsrPMen6g36kLKZGc4nEoPsR9ygj04B7qx DVY2uZyNZ19dCdzTFKoUEeS5X8Ndf3Wy3tSBFvTzV0S3nkZk/XKzmb/CM7r8M4b9CiYQKs OLK5/eZk6yIRy+hfPiTWpeIv9Zfjv3nrvL/3AEcCJQbsLjfbRZKSj+6QLTX5Qg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658258030; a=rsa-sha256; cv=none; b=ZVlbC9BNHwi1CdRji6V5UeHXO3pJyo+eyxZlFKS/vzfMaQcnXquvBRdHfJ1L2HWuHDi2Zg jPDtvq1QKJjOX+p+6RwoOeJkWTAvHs7E0zn4ewebo6jNckS6a+bLxoN8au1nBtaeAafLWH j8RGJkGlLJDJQzICdayNfPAM2nLF3RAE3h+XIuBRWEfd5pquzjriUQFCeVjml902hk80wn niELLp90xC6M4yAnsNW9k0kN5yNauQ5ucuy823xGvNXPBAMs9x5filzPTxIFY0e53Ph2jt CZxGf08WtwzCU4L/UNbeAu2/VOmnYkEW35wSBahE1RaaMZUX0GBuwx73e9/zPw== 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=6f5f44562a72e739a39057a4661a56498e4c79b5 commit 6f5f44562a72e739a39057a4661a56498e4c79b5 Author: Dimitry Andric AuthorDate: 2022-07-19 18:48:47 +0000 Commit: Dimitry Andric CommitDate: 2022-07-19 18:48:47 +0000 Adjust dtrace_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: In file included from sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c:18440: sys/cddl/dev/dtrace/dtrace_unload.c:26:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] dtrace_unload() ^ void This is because dtrace_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/dtrace/dtrace_unload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtrace/dtrace_unload.c b/sys/cddl/dev/dtrace/dtrace_unload.c index b0d22e6527f3..1dfaa774e99f 100644 --- a/sys/cddl/dev/dtrace/dtrace_unload.c +++ b/sys/cddl/dev/dtrace/dtrace_unload.c @@ -23,7 +23,7 @@ */ static int -dtrace_unload() +dtrace_unload(void) { dtrace_state_t *state; int error = 0;