From nobody Wed Jul 20 16:50:54 2022 X-Original-To: dev-commits-src-main@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 4Lp1t70Wwzz4XQBy; Wed, 20 Jul 2022 16:50:55 +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 4Lp1t6718Yz41Rc; Wed, 20 Jul 2022 16:50:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658335855; 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=By2Gjmg2xxy2+kya42wvKZMPpKn9ejivSN1aZ3vvYCA=; b=PFTXVQWNy0i7xAvwZh00F2YbcLCP05Lz/Kr31xo1b2VTn7bq0nvOoUb4xdic8zGuF1Eo1A bG4RRYzPSmrkb9Fn4LtKh9LxQpcpacYGu5swhuGCvCfSpV4obC7LhAW8XBZDi+nD+aOvnu WGwYteoWD5q3vL/ABrt5Bf/xd2c5AfpqFy3/R3hGdQIK9vJsHj2y3O16gN45SfZouB1rU2 8OUzkUo7GYsgCA/TU2cGWT0srLpaly/WVM1mm+xr6BH9uYwBuTkahfQl00LU0hwcpuFFlf dUrEUrkzxai6KZbL67MOmXL/oNtQiqX806CbXl7XGRLWe5oHNIYbq7TdrbkiPg== 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 4Lp1t660w0z14gY; Wed, 20 Jul 2022 16:50:54 +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 26KGosQw002957; Wed, 20 Jul 2022 16:50:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26KGosmj002956; Wed, 20 Jul 2022 16:50:54 GMT (envelope-from git) Date: Wed, 20 Jul 2022 16:50:54 GMT Message-Id: <202207201650.26KGosmj002956@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: 9a979788832e - main - Adjust prototype_unload() definition to avoid clang 15 warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 9a979788832e1c31d58923e4c780a6c4b05335d0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658335855; 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=By2Gjmg2xxy2+kya42wvKZMPpKn9ejivSN1aZ3vvYCA=; b=WRHr0W8aEoiiaSW6CCVr6c0j5Vb5Ghe4mWsqPqpF0W05yC082n6H6SIX6Mhs0rWG1NVq1E 10u/RDXcU+S1RumEu8pjDTY96u3Ir9ZiNVUDi6T3m89x5fWM3KJckuVsxewqfCK0jePG6Y xg+PvfxVwcmMN5Uv4+f+XBUsMaicXZWftx6nvcUNeI8t7Imva9vos2S4+xQh7IqbkzLCoa qwUBlnnkYjkh1iglVjovAKXL8DYm88BPBqadPy3o8unR5whTx2CRU6qH+nOAvlq2A33P8C HDOyr4VnSQy2vkqURs1A1Bpb0vPaExVxEyWymzcaEtDp4Tr86o2yXQGduukJzQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658335855; a=rsa-sha256; cv=none; b=KJ3IjDxCFLPq5Zq5kO3Hw7IcK8qPszgiAOqwT3Q6+RZmueh1n2xYAZsUvcWVQCpa+dibWt D8Ed+rX7Tx+tvdj4Pldv4jOHWwRgQDlB1UfWJ+tAC16pzi5c+7bWEIyGkes1nRKZZKVnKf kYdQUuzIfTe1alpsDM3mV41Az3Zfs3lxPiYPm47Vt91FaGMc/Yl6AIHzsfCJtvDyHqr91g n7xUkM1pI0aOLvDl+1cUCpskjv4CiFD0JSl1A7ITNKHb6bwlD3OC1FaqT9KbsE5M5ZelCd IhhQhrmrq/tv0oG8a90Iv/OPijQNe3hJdrlTjZX4VBo73/ODvCxnvA+MevAQYA== 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=9a979788832e1c31d58923e4c780a6c4b05335d0 commit 9a979788832e1c31d58923e4c780a6c4b05335d0 Author: Dimitry Andric AuthorDate: 2022-07-19 20:10:03 +0000 Commit: Dimitry Andric CommitDate: 2022-07-20 15:13:49 +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 --- 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 bcbb3d202b27..203d910f5e00 100644 --- a/sys/cddl/dev/prototype.c +++ b/sys/cddl/dev/prototype.c @@ -96,7 +96,7 @@ prototype_load(void *dummy) static int -prototype_unload() +prototype_unload(void) { int error = 0;