From nobody Sat Jul 23 08:58:59 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 4LqgGC2YPLz4X75M; Sat, 23 Jul 2022 08:58:59 +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 4LqgGC1xY9z3h1C; Sat, 23 Jul 2022 08:58:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566739; 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=m3VkL39Utry05CtEB3mrQnMyC6ZhhIxDjVeuLiJN+y0=; b=dDqThQIy2NTl9l/KpznfF2swwYqK/8+FR/vtu5llkbmHOxTDTWBrMIPjWwcCcJKz07DIw+ p9TS8JRuakqpb8eUlLvwCWR/mVEGZjdt7ZRiuL3NAYfFLuQjHS9TzjVnlelGVNKyQuW9jB JebuGP4C6w8YNUuIMY47Kg/X2oKe60gq+ovBNyTmQ+PWi5BzJsguMJ9s6Rks0j/YbMeOXW wIRADukAvPD7w7UIknvcEWZtFkYe3Y+RdsTQjJNEH2t9IrY6BL4sZgs2QryCgsxLo2axsu 8kdYrQM3sjU9DcOP+fx4KYGJ5jGTU9NSAyfIJn/fk/Q99d3Gn1NxFn1JXQrjKQ== 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 4LqgGC12sXzZDW; Sat, 23 Jul 2022 08:58:59 +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 26N8wxW1013294; Sat, 23 Jul 2022 08:58:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wxki013293; Sat, 23 Jul 2022 08:58:59 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:59 GMT Message-Id: <202207230858.26N8wxki013293@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: f72139f3bf28 - stable/12 - Adjust profile_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/12 X-Git-Reftype: branch X-Git-Commit: f72139f3bf28f53fd60998d9e48bd2ab672242df Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566739; 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=m3VkL39Utry05CtEB3mrQnMyC6ZhhIxDjVeuLiJN+y0=; b=CH9i7/H8yVCRCNqckfmvNst68uMc4xC3pLtMbhRRoQANUvRSux44ZAtcqN34jJzKH0qqBq +0M9n1OvZ9C+TKNfFqu1H6dXRQc32STYJmej64A3ra0mcQf0wcOmzmc1zwBoHjWyrgJPZ8 vAkWpBM0AJjyQjKnGlsET3GDjWmFbBCRzeXyDRyASM0WKkaAnOseHSxjatijXQs1fRwD8N KPPaYsdnmIVRy1dsheVXyrkpxtvYeaTAthghc+ZgI47LpRNDmxQEq+UnOVckUTHwA+HhFY KPqVFmS/5gan7GWbQBxlNs+4tmNTFINIc8bf1wqT3YBLvneke5MTa6MU2WVZUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566739; a=rsa-sha256; cv=none; b=oHYBvzHeEV8ji1sYUGuOY8ElkOj9B0/Kl+MTGYF+HeunGyAgcQibIoimJ2fmEdTAh/8rs4 ZOpyS5ArobYt2CKuVE2DB6AQQYgBct+Suc44GMWh3KVNVFec19zehf8Wvski5RJAMPbC6e GMU5Oy0uinABhtmb+yz0j5KHK91ElPUOEfZCzmreLTcZXyO7vOAHZ2CfgL+yMKsl/JIK6C /eIwYilKpLF/5d2psAKTcK26bvEXtMeHNOtKEZVtC8YM7q+/jkORdyWF76a7IZysC6Bj6I Ed8tp14HBWVoY+yGejjCBHOFjFvfBEG08JqI1WgRsq4hFdkANwnLoDp++CAdEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=f72139f3bf28f53fd60998d9e48bd2ab672242df commit f72139f3bf28f53fd60998d9e48bd2ab672242df Author: Dimitry Andric AuthorDate: 2022-07-19 18:42:52 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:57:42 +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 (cherry picked from commit 2d03b58f9a3d5ec1deb35de594fcee22d06bfbb2) --- 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 11697cc259a2..56630a35b74a 100644 --- a/sys/cddl/dev/profile/profile.c +++ b/sys/cddl/dev/profile/profile.c @@ -665,7 +665,7 @@ profile_load(void *dummy) static int -profile_unload() +profile_unload(void) { int error = 0;