From nobody Mon Jul 25 20:08:51 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 4LsB2D0DgDz4Wf2k; Mon, 25 Jul 2022 20:08:52 +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 4LsB2C2VM6z3nFv; Mon, 25 Jul 2022 20:08:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658779731; 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=gLNvzceiiKKstriv/1PL2PTvftm+MqsxfiR5pTc0PUA=; b=mWaGejBEvoZ3ElMB1AlAGjUBQCwHSxA6H2UMHDC+xozZEKfOPpG7AI5CqCVpbA77Sr+W5c rAaRHMCUbq5zHEDN5e/kXJeCZcIoh8umY+wnR1n+qhx02cqliyah3Fdej1XpnqHQoiI4cv xnFWl2fuzB5jMBUBDlAEFvgg3T0gbyudpo5wpCjH8MzI7fzWp8ckWhRZ51qAIbHozuJQTz R2d4QS4ZS7N5kJlCNtsw/Z/ICJYmWmUZsxMZ8MYrA2wCD5TwrvcNbeFnHLrXWf/98SGBCY 6m/n08bcgyTeR2hW4jp8CTahsduK5tyOhhrujCGtcYNOZtOKmEA8yf82IPW+8w== 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 4LsB2C1XvGz18x4; Mon, 25 Jul 2022 20:08:51 +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 26PK8per023193; Mon, 25 Jul 2022 20:08:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26PK8pQf023192; Mon, 25 Jul 2022 20:08:51 GMT (envelope-from git) Date: Mon, 25 Jul 2022 20:08:51 GMT Message-Id: <202207252008.26PK8pQf023192@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: 205798564926 - main - Adjust sctp_init_sysctls() 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: 205798564926589ed621b88d1853429d00de6de0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658779731; 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=gLNvzceiiKKstriv/1PL2PTvftm+MqsxfiR5pTc0PUA=; b=q0XXwfanQ/lZgAfyZ91fCYqxW04tPM9wNjr44gTEjt0DtZBl89hLI9//c81eCa9FWNb83t 9GK3vbMqnZdY4L0Cf5wCI7/yWVGVFFSW0iWElcmBRFmYloHDDZLYWrI40OM8rZ/5/2Zvy8 jqRHJNsfDnT3bjKJv8hGGRWkoMgBqFXSQCq+Qq3hlF6IGNI5jNNk5bSnnpUzPgO+Kwnefs Neqxu1XMSHTAYNkIumAK78hbS3vqQd4gRdnqQubXtjDlUWeZG53W9VgGUT8NP+2Ts+zbnE uX2jeYRTyRBMHLC3VHWbcfQ/Pt1W/ImqOZc1Uc7mlOnZjEWHzvu9RREGMPQIuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658779731; a=rsa-sha256; cv=none; b=IuttHxQGiqZZlVPlb1YW3VoGdJGp14/g5nf3tvwziWo63Hea2sBF4kY6LmlMQwZOxCEOl9 pLqQBiSZ3+7GT+iyEZwRx3VXLNylAiszEggDL3tWqHZFJuMjU9iTlAfU5a0Rn5J8GPedI1 6/r+u9kMyf9L2PFOvysMm/p0i49UcKDCk1f3vMUFFj3ZXDtatPcX62h3t23fR7hUI9akhI Ir0S1bcg3alQw/iWXmKXVkt8Cqzhk4HnqfZwltu9xqJ0d/cTyBWAn2Q3i6WWnpGzsT6lvz iiN6f9JRS7GuXjXlG5GX2Qu+qChu+ZNDsgXwDWy26HoZayVAXOMgzSm896jN6A== 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=205798564926589ed621b88d1853429d00de6de0 commit 205798564926589ed621b88d1853429d00de6de0 Author: Dimitry Andric AuthorDate: 2022-07-25 20:07:49 +0000 Commit: Dimitry Andric CommitDate: 2022-07-25 20:08:35 +0000 Adjust sctp_init_sysctls() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/netinet/sctp_sysctl.c:55:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] sctp_init_sysctls() ^ void This is because sctp_init_sysctls() 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/netinet/sctp_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_sysctl.c b/sys/netinet/sctp_sysctl.c index e7e53e52b226..fcc02f315a1b 100644 --- a/sys/netinet/sctp_sysctl.c +++ b/sys/netinet/sctp_sysctl.c @@ -52,7 +52,7 @@ FEATURE(sctp, "Stream Control Transmission Protocol"); */ void -sctp_init_sysctls() +sctp_init_sysctls(void) { SCTP_BASE_SYSCTL(sctp_sendspace) = SCTPCTL_MAXDGRAM_DEFAULT; SCTP_BASE_SYSCTL(sctp_recvspace) = SCTPCTL_RECVSPACE_DEFAULT;