From nobody Thu Jul 21 17:43:05 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 4Lpfzt1Pg6z4X8YZ; Thu, 21 Jul 2022 17:43:06 +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 4Lpfzt0wwRz3LJS; Thu, 21 Jul 2022 17:43:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658425386; 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=Py4O7Aef7WJOsZ2OTJUVb3Prf0z/4Mlp6QFa1KW7OVk=; b=peEaATJZOMYjg3ebiMeWOr+C/Kwf8tTgtsUM66Lw9nYsa78A4MSgJ7dBQDwhiVBJQR3Jre 6OYk6svbFAIsypohdHM973wh4DCYdBqTRiaJRLh4rhAEy6J/ELoKzKCkSLfMJn6wtKcwR9 IKIVpXb3EbcJneth0mkAWzOr5IrbNIiuKSANjkVf4Avd/4pbPKPJZ/LsWirbGCVBJvXOJd T5V+xy6o+3zKqDK0OR4ZO9HM4+hTUy77M7BkDWBYFUdjVAdK/a8k3woVdM4wnfGqxQEUTI Bc0GCmQdbRyRFVB9z8c2Ue49Hmve53V4A2OnisRP8cX+NFGC1KCc4yxU3+IUbg== 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 4Lpfzt003GzWXW; Thu, 21 Jul 2022 17:43:05 +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 26LHh5ga029073; Thu, 21 Jul 2022 17:43:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LHh58g029072; Thu, 21 Jul 2022 17:43:05 GMT (envelope-from git) Date: Thu, 21 Jul 2022 17:43:05 GMT Message-Id: <202207211743.26LHh58g029072@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: 6339314c737f - main - Adjust fbt_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: 6339314c737f44477c1168819353087c2f4816eb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658425386; 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=Py4O7Aef7WJOsZ2OTJUVb3Prf0z/4Mlp6QFa1KW7OVk=; b=yj52T/Jy7N965dbiuWdV0rjz2QpiS7q/f2NZHNvq6oXJV2kv4pG35804Ce0cRZY0kztPTc h34ymUhIcwYm9XixgkB9xKu5BBoERgIeW07MojwILV9Q7aHjoFdDwlPbsK1cRYKejZZ49d rlNLgpbbrqKI+AthjFkXFqyhNNNbh17iwfL6aITr+CMwQs/GX324zdBhxHqvDGt/93uGX5 o5R5CXDoG2pbaX+09uHnmU5h53j/iaRhznJfS/w4EplaEu/IBwH318SQ9S11uaFoaJgUJ2 ej6gBXt2IvNofv7gn8PefRVbch///axzB5sLqNQQu8KJeYohIdnI3G/kYfvzPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658425386; a=rsa-sha256; cv=none; b=nhzjkwmr6/k5Nv90GIRtgiK892dVRJ2CXQAbTdg2OrObosynt/yPRGlrKjud99S8cFuaYS ShkTd50y20pMz/ezuteuDRluvtompEsub+eS8TImU6gvfJHtWU81pWPK5s3HnUj8dPx8qB J5T7AXKyFrQtHh58byFBkJc8F9c0bKfqDnWCgnhlbY10QT6QBUgaAsBaDUnS3CplXBjarm bxG1Vve/T1/LsxUoq3+aWtdExaXeq5Ut6d8XAIprXVy8TJ4Ija0jIKIJ6TqhseTgvysD53 mwq0azEz+P5mNbe3eX+hBPbeDI70DpKoR3NUZestGkIzDZRQnoegUKEURKNEcg== 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=6339314c737f44477c1168819353087c2f4816eb commit 6339314c737f44477c1168819353087c2f4816eb Author: Dimitry Andric AuthorDate: 2022-07-21 17:40:38 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 17:42:43 +0000 Adjust fbt_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/cddl/dev/fbt/fbt.c:1273:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] fbt_unload() ^ void This is because fbt_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/fbt/fbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/fbt/fbt.c b/sys/cddl/dev/fbt/fbt.c index 1ee7d121f602..35db8938d3c3 100644 --- a/sys/cddl/dev/fbt/fbt.c +++ b/sys/cddl/dev/fbt/fbt.c @@ -1270,7 +1270,7 @@ fbt_load(void *dummy) } static int -fbt_unload() +fbt_unload(void) { int error = 0;