From nobody Fri Jul 29 18:47:26 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 4Lvc2Q58Q9z4Y1l0; Fri, 29 Jul 2022 18:47:26 +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 4Lvc2Q2jQMz3pSP; Fri, 29 Jul 2022 18:47:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120446; 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=cBNLYsfFrml6Qq+ZHebEH96AUnUrgi+wg+1n/XzoXyc=; b=WEX0cXrvu9/vWJ2whjDdzEEGMcXaq4tA4pHQWB4I1SqTIGHyd4hm/CryMESPFXn7hWGKK5 293ENpt84nydv+Z9ZeucKQ1sWN2HAdeDQDpekeBELP0yxKVRvaT9bMgX86zPCsyGPtwdKI 8tKZPfcQp/yIWPHNQJBzJz687vZL3rRIvIWdzDmf8JIKh5SEpwBS5CKiWSIjwvsdKHlhhp /Hv6yhdZ0HKvYNUAzB9cEISD9zcn5R35AOaIXCGPW7LNs3ItffaQZ7VuVQC5kDxx0IR130 vbfUYJQ5LAiqsaDN4pIOaL2xMVmIhMW2JOAFb7rQycOncJKyFk23F2Lv97aBHw== 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 4Lvc2Q1nvMzlRY; Fri, 29 Jul 2022 18:47:26 +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 26TIlQ9U024092; Fri, 29 Jul 2022 18:47:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlQnG024091; Fri, 29 Jul 2022 18:47:26 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:26 GMT Message-Id: <202207291847.26TIlQnG024091@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: 840153f61c70 - stable/13 - Adjust function definitions in sysv_msg.c to avoid clang 15 warnings 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: 840153f61c701071d59634b8cfdbc16420ab3715 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120446; 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=cBNLYsfFrml6Qq+ZHebEH96AUnUrgi+wg+1n/XzoXyc=; b=o/FBPenzG+vKrI1KZbWaUzZk/8SessO4uyUUJmTvSgcySkfGs0ltHspNoHJx9WD8WB+OVM bKdf2axdnSgLvb3aCQSVl1XDxzZkMYxzsdGtcivYriT3em6sm844gLY0lNzwWqmjFRCfxZ V2CzBch1Yfsz/sGWWDh29iPPxgoj5y9iNlUaRLbz3qwsJf/a/R0LePNDFGYYEg2xQfNsLC 2MaqXqBarBXwTp6fbkDmQyDBuzYkRGhbcHMa1Y7AybbY9hMM9IyMf7pjIlJxNkMgD2ntBM yyagvCukG2mmsbmplJQ/TtfmR9YRcIH96ONzhUJwelepDVYhfGdAoI5Ln011Cg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120446; a=rsa-sha256; cv=none; b=voczdOLCMDOSj9N48D+jvH3QTAY3ZFJREV5PZmHDqwkejYly5e+57aIAds7CoWGZKM+fT6 lwOvbNKYt9JKIQID6KuM7FfgliYd1ePy8HkvT8DaZ2nQcsRhZTC+d6CeVRpnSIImHwKMWe JQn7X3xXynHpKQ9rsM8EvMMY7Rr18gCa0FklMDm4rnv8vYQPvPaEiXokoQmZ8cRyN5W+05 ytvnOhKsMWRO2hSD86vTYWQqWnCIkBHszCflGmLhdJhi4xtsWzF/J4EGOKxitb8B0RSH4x 1AUqT56e1RuBP51k3ux9IhuIHnXO3Fb8Jsd5kE6DdfkBkvmPlBLbKVDTfHndSw== 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=840153f61c701071d59634b8cfdbc16420ab3715 commit 840153f61c701071d59634b8cfdbc16420ab3715 Author: Dimitry Andric AuthorDate: 2022-07-26 17:46:15 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:29:09 +0000 Adjust function definitions in sysv_msg.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/kern/sysv_msg.c:213:8: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] msginit() ^ void sys/kern/sysv_msg.c:316:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] msgunload() ^ void This is because msginit() and msgunload() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit 78cfed2de70d023acb452c06dbd1ffd8341f4608) --- sys/kern/sysv_msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index 435235f0384d..0facc9e63b32 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -210,7 +210,7 @@ static struct syscall_helper_data msg32_syscalls[] = { #endif static int -msginit() +msginit(void) { struct prison *pr; void **rsv; @@ -313,7 +313,7 @@ msginit() } static int -msgunload() +msgunload(void) { struct msqid_kernel *msqkptr; int msqid;