From nobody Wed Jul 27 19:18:04 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 4LtNph3kj8z4XS36; Wed, 27 Jul 2022 19:18:04 +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 4LtNph37ZKz3GMR; Wed, 27 Jul 2022 19:18:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949484; 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=Ox4+tzAGHXYj/OHp8vjVrJNE+r27muVT8sKs5ODEe8Y=; b=ncekcfkxYfoa08takM2ntCLc3jaEcUdITKywsZnAhPOaxPa/t4PuD1bBH9jUzJY7wp64+4 gYix0g08SyYsFOZa3T9tKtLlJpgmgvBI6xk0quVqUDUCy/DfkVTmh8MYE5euApHGce62N2 UBJY+ZS52K95shX2sKFhn+vrdeCAbkGBLcuEt//3ly7bwwtQEXeRrlMnRJII2F0f64He+E YBYAgwlmjEEhdqD0s6iFThDB5AwoH0Jo6dwCXInRI+0kzAA1HmrmRUgpkt9/5jhTjj++Uu cGi3jRZVR+Vd8nikGrCAyxX8or69u+lLRwglDIlKKxcKGSv83WApi1o1yi2ipA== 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 4LtNph27TgzSPk; Wed, 27 Jul 2022 19:18:04 +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 26RJI4Xg058708; Wed, 27 Jul 2022 19:18:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJI4th058707; Wed, 27 Jul 2022 19:18:04 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:18:04 GMT Message-Id: <202207271918.26RJI4th058707@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: 6bc04efce3b2 - stable/13 - Adjust authnone_create() 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 6bc04efce3b2054d0605266940b2a029f78d54c5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949484; 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=Ox4+tzAGHXYj/OHp8vjVrJNE+r27muVT8sKs5ODEe8Y=; b=LaHMFuzaFPSUb0dRnn+Qqo+gkVSVylYcB73zEmmB7HJ5hYqQ/s+1F3CPF5p18HApVJHItR CW1v5wvj59EZ9tAj+heJloiapLdutK5mG76mRQtA56FXgmgv+gE4COT/qU9bXm6i0icaZh TdcRYc+kt1ebh2HWPITV83oVVa5d4DPY36H4eyXgUZTsFzxt19lnlhQOc2niwSBa8LKyVK 2l1PmYzCp6s564HCd416VprTrsm3dUrBeEIA15lbCycPX6qofroqx3gp6hECLDwKxKVnhO 9gm5ebTxn6jkdKeXRTisClQx0gDWd2O1WhhSwoIv7aWFC5vEVEYQxqO51jV1+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949484; a=rsa-sha256; cv=none; b=qnoSJfX7emm44xf64Bcv+0OIfkW490QQJybeiGl2GSHQgzcpPCIcKDxocFt/NvRi7zY9rh GZ9ChXjFimcJnGS8qCAPLEKpLmsWV8BmAVcTtFKzZDDU/q0y4SW+QpNB2LFYi4x20EkhVZ oBVd3HwoxD2rM1UaUTqihOM+Q5Sb/tNWY99QPJvm26gsN/taP4a2lh6iF3DqHopYOZH0Pe lJLzh4lK3kIhhMGnyk3IUCbYA+SBKhR+QG45HRGzjfG9Jucmd4Wo3pufcQyyaBsaUaLd7l XaXf5F4L/i0i6C0WwwPr2kI3ynUrC4xFQxtx/lWw/mGfHeN+tg7aO0q+5yszHA== 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=6bc04efce3b2054d0605266940b2a029f78d54c5 commit 6bc04efce3b2054d0605266940b2a029f78d54c5 Author: Dimitry Andric AuthorDate: 2022-07-24 21:40:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-27 19:16:23 +0000 Adjust authnone_create() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/rpc/auth_none.c:106:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] authnone_create() ^ void This is because authnone_create() 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 90529847cf079d3b7250ae3d3ecd79e843df7973) --- sys/rpc/auth_none.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/rpc/auth_none.c b/sys/rpc/auth_none.c index 91597114c069..87614a6b3880 100644 --- a/sys/rpc/auth_none.c +++ b/sys/rpc/auth_none.c @@ -103,7 +103,7 @@ authnone_init(void *dummy) SYSINIT(authnone_init, SI_SUB_KMEM, SI_ORDER_ANY, authnone_init, NULL); AUTH * -authnone_create() +authnone_create(void) { struct authnone_private *ap = &authnone_private;