From nobody Tue Jul 19 19:13:48 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 4LnT5S49Vnz4Wq4M; Tue, 19 Jul 2022 19:13:48 +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 4LnT5S3ZKzz4GDK; Tue, 19 Jul 2022 19:13:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658258028; 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=+aaEiARZbnsRDgVl7HZOZysDfdlZzdN2pYnAD6lMLWk=; b=Atq4yLvfqVSfbf5ZsU/nPU1OGRwOoKFoygbqAarYRFf+GJa9ocEwCY95eJD2KAaa7Jm7aS vJ80TQqeyvoarejkmURPZUeKDwRAcQ3Yxhr1K2feUL8MP8czV8M0PTNskFDAzPDGDtNYZ0 VrDrXSVwtVFKfctS4YLXSoPVSm5Oq8nWKBWrcgaaZLg0tAAsEqvZuFbIyKgwbqJBL9SlkY 4lMQ0ubzau3BAQc3hBXNK9YCTb9Rxr/nuqV8pt7rVZ62kHUqvkGJYT9t3nf1eNk2joi/5Z o+kJATgJZ3VkNYDBGQGEwPMqGIPReOSOjXe5GVLwWn/HKgiSELaHfb8OsBJDYg== 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 4LnT5S2XykzVRG; Tue, 19 Jul 2022 19:13:48 +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 26JJDmtR072401; Tue, 19 Jul 2022 19:13:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26JJDmp8072400; Tue, 19 Jul 2022 19:13:48 GMT (envelope-from git) Date: Tue, 19 Jul 2022 19:13:48 GMT Message-Id: <202207191913.26JJDmp8072400@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: 2d03b58f9a3d - main - Adjust profile_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: 2d03b58f9a3d5ec1deb35de594fcee22d06bfbb2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658258028; 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=+aaEiARZbnsRDgVl7HZOZysDfdlZzdN2pYnAD6lMLWk=; b=R1lMHj4+sU3RZq8TmGi0XX/jqFdQm6RY868aWwP2d0OwZhusuj72ft/6kJMLW0dppifdPG Bq1+Qcy3WQwl25pMYfk+C2K1kVrZ94l0MdFz5JEMSZYtUCFQOatR8X9E40mtA72kVxYW/F ArIcxeSUOObUSdjpeeG08BP2f904g1gRgZ4ZugT2LJTtmlKEYYXeqGCyfYYbPOUBWzOtdf Xaco2srcIj+7chtMckWB0dPJdVKh46EpwqH/F9b4N16d5B2Q19z1BIBiIyhbC2/xiqHpM/ ScDEPPfL0qK9Qp9AC+lSt0cfI5I8QLRpkG/7ISxP5NtAxQsmnx2qgmLTw9OpGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658258028; a=rsa-sha256; cv=none; b=fSk4stZjRgI5vyCc2CrjRFnKaQQHC7hObag//qkErpY0cxLSABwYNdfwH311iCZnagtsrO gA3xEmD9/G4KbE3L326Zb1kRXm7Gs9vJtg9C9RzBqzPY5x41EBzEUenqqmjTNAfpAkr+iv UtAC9dnEs9gjefHltyRL1qg3rAwiDCSlonMFsbHYPqCzVtz5Pu1Ro7inVQ9W6VFAO4UHU5 ovJ5iWukDtgDaI0dokXuKXN96gqjJjfRcPP0+DafWL9juP9FrT2swdxzjYkfVuKA/6WOnR 83rugTm9cHj2EmHIB4QAPIGDp7DRjOxEA0Z19yCfSYIy9TwYyvWstcVCeG14cw== 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=2d03b58f9a3d5ec1deb35de594fcee22d06bfbb2 commit 2d03b58f9a3d5ec1deb35de594fcee22d06bfbb2 Author: Dimitry Andric AuthorDate: 2022-07-19 18:42:52 +0000 Commit: Dimitry Andric CommitDate: 2022-07-19 18:42:52 +0000 Adjust profile_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: sys/cddl/dev/profile/profile.c:640:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] profile_unload() ^ void This is because profile_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/profile/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/profile/profile.c b/sys/cddl/dev/profile/profile.c index 87289ff2717c..89b0b8c9445b 100644 --- a/sys/cddl/dev/profile/profile.c +++ b/sys/cddl/dev/profile/profile.c @@ -637,7 +637,7 @@ profile_load(void *dummy) static int -profile_unload() +profile_unload(void) { int error = 0;