From nobody Sat Jul 23 08:59:02 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 4LqgGG4XqSz4X7Gs; Sat, 23 Jul 2022 08:59:02 +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 4LqgGG47Ysz3gv1; Sat, 23 Jul 2022 08:59:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566742; 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=vH6tEVX7N1ZB6PcRdgqWuvbG+vC2FAQ6PlByuvitJ+c=; b=sJFNr38n6l67tTg1ud+2plgw7pjprydamU00okSdCxFCHmM3JSYbRtaOAAI0oP3u6c0gqu sNNumr/jgnBN7RRC/xlIokJOxxtSrN6lCrTDlRX0zkFi5RbCUFbwa3o130dyhP08zd5ciT rdyGChanK586Bl10zyeAeH0p4j0qI02aLKTZH8fXQMcvCAC6jWCADZdOwt1QJ9Pt6+rqDy 3JVpAeKm5ftt9Xz9yhNmm81YkYo4jfQ8u/1vkjpFEwyreDpJJD0GGRWqZqL2LeeWeTekBo Fq/K49flamr3AfKnBgbaIkVG+gZXsamtoXkTZ/fxoThArQYz+53R5H8CuQX3aQ== 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 4LqgGG37V1zYqp; Sat, 23 Jul 2022 08:59:02 +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 26N8x2xV013370; Sat, 23 Jul 2022 08:59:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8x2dQ013369; Sat, 23 Jul 2022 08:59:02 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:59:02 GMT Message-Id: <202207230859.26N8x2dQ013369@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: 10f0979fc448 - stable/12 - Adjust prototype_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/stable/12 X-Git-Reftype: branch X-Git-Commit: 10f0979fc448c330850e33bc9a010850264aa9f9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566742; 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=vH6tEVX7N1ZB6PcRdgqWuvbG+vC2FAQ6PlByuvitJ+c=; b=x6VOYdOa2SjguLkTAIKNH8JKzMx0C6yFoGAC1PT/XTqUX8Lvxgoh8m1VHMggCbwnlb2sgY CFpHAQNkDAd5NgP721G2jOx9FoH+CpyCnRQQEdcD3+yV1V2NTBpz3HXt0xcsWOrrxfVXIE ZFdnaU0AfF7X6VMCOfqwJ6ZufpexrS5/UNhjbd6BRKuh3I0wcrWxRtp7An23/FXzCAqWXF a5cUoslqWFAdJcCd5eZJCHZyk5x2K6ftog9VO/wpyTCHBdDza5tMYUDiepl+qGrCUq61nH AR/rMHq2Rj4pXCfwkD1Zx2AGANvVbAKyckvGta6SJ0VBYHUmIgnocyj/dJ+VDw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566742; a=rsa-sha256; cv=none; b=rLe5GbTZoUbnu75+NMW5lgbR1aLpYLndw/0apyolsxWIOBvn0kRshrz2f+ivdfI7WfW/pL 2lw0SME40sLG2579mrUxFyfD5wKDBroQtsZI+dXn6eYGbDXBOjOUP7wnbFrgQ7doaZS5o8 MATjG6LPMT92JP3ykdKprglbUCHABCt0/shEcN2OgrpWcCoEClwr9vt1+g0FhQ0IB7UPve ysNkm7/Lc7O2ffQN5SFhoaHREP3XtZbrclGmCK0eLiAVcJKiOaxbXggQcEGoTLSaik/4vH dyy3s2/XP/0x979OfuOpOvjKDOTCJT4fsTaX+jCjJZRPMViMhyLRaDSxaUk7nQ== 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=10f0979fc448c330850e33bc9a010850264aa9f9 commit 10f0979fc448c330850e33bc9a010850264aa9f9 Author: Dimitry Andric AuthorDate: 2022-07-19 20:10:03 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:57:43 +0000 Adjust prototype_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: sys/cddl/dev/prototype.c:99:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] prototype_unload() ^ void This is because prototype_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 9a979788832e1c31d58923e4c780a6c4b05335d0) --- sys/cddl/dev/prototype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/prototype.c b/sys/cddl/dev/prototype.c index 6e31f19d5ce6..2608c505e49a 100644 --- a/sys/cddl/dev/prototype.c +++ b/sys/cddl/dev/prototype.c @@ -93,7 +93,7 @@ prototype_load(void *dummy) static int -prototype_unload() +prototype_unload(void) { int error = 0;