From nobody Sun Jul 24 22:40:40 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 4LrdRr4813z3ysGm; Sun, 24 Jul 2022 22:40:40 +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 4LrdRr3dKrz3vfY; Sun, 24 Jul 2022 22:40:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702440; 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=mBAdC0033PEG6MQuUxE5a5QRtvDKKzP2kO5l2d1r8aM=; b=PvlfJVGnDRxinguCIhRBI0om1Zi0x9lDmLIH2ZkY9a4ii7Ib6Uf1UeCV3nE138badexclk H1+O9vOZ/c2Wr2Vyd+xN6FaCwjRZQfnn+vRTvBF3sx8QyI/RgHCBkzyuzS5T89eI5Fxea1 A1bSUOlgPHnHae6iwo1lA3ARqpR8MPbzqThTtNi0w0YvIJRgNhZ2X+uaTTQgdRow05MUXt 6Lu2JDf2CaKFt+Mf1+x/+xN7pNvywcKOrT1Q8QHvdtrUbn43aYMB7fxJZR1c3QHIVgj8Rt 65Wtd95BAV1MF/oaGgb3L8QxZN2pjMBGfrA8mq+eVyN9FyQAs7iEp0a8SqNBtQ== 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 4LrdRr2NhkzbBn; Sun, 24 Jul 2022 22:40:40 +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 26OMeesZ086319; Sun, 24 Jul 2022 22:40:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMeert086318; Sun, 24 Jul 2022 22:40:40 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:40:40 GMT Message-Id: <202207242240.26OMeert086318@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: 90529847cf07 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 90529847cf079d3b7250ae3d3ecd79e843df7973 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702440; 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=mBAdC0033PEG6MQuUxE5a5QRtvDKKzP2kO5l2d1r8aM=; b=v+8e+hWSPqUc+Ew8XwPVDZku5n4h5gU8tI32uGTZd3K8UNHj17OJGb0iXCDiqF1mYEvHki ShjbDwVvn40Dah/GqJgVYPZzr1ikUnZWFnhlZQQNN+nuGZljcINpaRqnvsAoRo+3ZdVUMi huMcwgC/heXDKN0nttq8I/1FOJZniaASTa89C8dpoxhszvh8AsTbk7mJG5traoYl0GqR1u vd4E2gefsmkPB6XnrpZ909b8vtgC2/grk4d/+vvNu5CEmhvfsIZAEHeBt/LlCui4MiSKSu PI3zYGbjxt6jbLEWZ1MAJZfF1XqMPi+LsqYQiv2gGVxJ1Np9+ycePqEkTIkDCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658702440; a=rsa-sha256; cv=none; b=P0+mTwmZNk/ZKBX/2IdzB4vi5C2UybI7Q7ybrrOFAUlBu7mEZWYBWQIOeDEx3qlLBvYpIy rI9Oe4VC6xLpzFftBlPCjdZxqevWGShteRgQune8Z0YLQ5tWATYy9wsADOMIsVafv9Zx+M P3Iu7xI8ZUL6KETXsCOgfgavoBMk5Xae8uczrJgaeBY+boYxPESOm3meGGATaennILgvKN 6KN5ox+lny698oTSSWd4a9nxsc7bl6agvncrxeoeIEaadoRzD0BVXjxNtfsIXQo52b56n6 F3uVhNQoLY309dU4JgLsKAnVuEfvBeB7mNtC6wv+V2EG1iKuSgI6GIe4Y0lyxQ== 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=90529847cf079d3b7250ae3d3ecd79e843df7973 commit 90529847cf079d3b7250ae3d3ecd79e843df7973 Author: Dimitry Andric AuthorDate: 2022-07-24 21:40:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 22:40:13 +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 --- 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;