From nobody Fri Jul 29 18:47:14 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 4Lvc2C18pmz4Y1Nn; Fri, 29 Jul 2022 18:47:15 +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 4Lvc2C0R6qz3npp; Fri, 29 Jul 2022 18:47:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120435; 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=BcIcfY/ffCsL+1U6vZ5/+dWn5GWTRkNKW2c+tzwS8+A=; b=j5QEG9JqZ5QSgdL+FDX3QddqBSs6krJdVefYSixMGr6R6Qvj2cmuPwqLGPKqyBcLJEQ5Av mYNOzgRarBfO/2DqBOq6f8sPiMSto6yaF8iGf/u5khcbp3FWlUJN0OdUWvOUTJMlek4LKP AWCi+eER3E302Z3MOj5mND1k/HfMEE+cfAC6EaLrW0qufPf6zLFW/U370cqSIZCAixhAT7 hUtPvl0M9V790QnnXnlGBGXtyLee7cozxMi0dScF8lW4qyPCXDqvZIISVdrdZFQ27NsPc6 aYxj9E6d8/zGf6pGKWSYXTQO/TABL+Rbt0jnLBhqMlkemQS6L5n7NC2n0iqAEg== 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 4Lvc2B6HXdzlRX; Fri, 29 Jul 2022 18:47:14 +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 26TIlEoE023840; Fri, 29 Jul 2022 18:47:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlEI6023839; Fri, 29 Jul 2022 18:47:14 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:14 GMT Message-Id: <202207291847.26TIlEI6023839@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: ba070e587826 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: ba070e5878265f807ca52540dfe2ff7a0bf2cfd8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120435; 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=BcIcfY/ffCsL+1U6vZ5/+dWn5GWTRkNKW2c+tzwS8+A=; b=n++h9LcqKT5Gl3uH386zvBHKGYCdFrl+xjCUCskKYLzpQFnlMMiNeOnFWPN62z0bzP5GXT eO5v9CwUJIY4FNP3uOFeHENmnN7DPAV27Y29xPwp+KiFoPsAp9gGj1egrVVTmc0yRICP/+ yJp/tnKe0aS+986Nl2ROz9PdInG8rN6pTsuDmWfow47uH4We8QHrPah7afFf5DQscJa9gQ McF5DrYMv95WcI3KShAlMz5K14FeP09G9cJPOpv5lLX6Ef2hBoApVI83o5IzLyMXTKNQn4 NeKrjOY/OMlp1A+zfSkuo7ezCxIw9x1et3Ch46AsaR8emnLP/Eu6/E2YgVZUGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120435; a=rsa-sha256; cv=none; b=R/PfM7HgKTR3p8rH0jHpyDexsESMYskCK4vTEXXGktlllvXTsrnVfJJGfOidnYPO9B5wXO 53CZLNM1mDWRW9UVcACs+jhQm2jCL8FTfMjEHZJtcdI5uhpZWl8dk7iw0WIjHbMHXCWPMB E3KqVzSuDvK6bARnY4GScK7Zr9Ym2Fl0hxgbhq4PC6zlg0ICd6IaPTadLosQPG6vILWVmd GfTUs8UgnHNRvuaaORHBSRkCXiabbLCOm/fVhiesh0GNm7XGSCVoTCM0bK39Tbk0ZZA65c B01ytn5Y6NOBJpm/imMfQg2yEnNo4IEWBJcVmJmKWU5CmYOcDWVrvoNDOypXDQ== 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=ba070e5878265f807ca52540dfe2ff7a0bf2cfd8 commit ba070e5878265f807ca52540dfe2ff7a0bf2cfd8 Author: Dimitry Andric AuthorDate: 2022-07-25 20:07:49 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:28:08 +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 (cherry picked from commit 205798564926589ed621b88d1853429d00de6de0) --- 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 4acca03792c0..39c5bc74eec7 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;