From nobody Tue Jul 19 18:02: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 4LnRW62hdhz4Wghw; Tue, 19 Jul 2022 18:02: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 4LnRW62CW6z43pJ; Tue, 19 Jul 2022 18:02:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658253746; 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=n4mgP9sM++oU5dKH0yr0S9mW4UYO2W2lWm4DX9mwGgA=; b=btn1OYPJH71VupLVv08X77nSsrH4W4mXtMJeV7w6i3r7C3JKS+O6XLHiZEu6ylSqMiYBth VMnq5UmjR4TGIy4UJYV6BqK0WojPuDCohW3lxwdvgDlDsly0Xi0g1htUBxm8cc0hdeAO/3 EwNUWwNzkfW3YbU61lNcy8zv0RGgNrIULcAAJi6CWBIbCNODQGv657VJ8Xnz79MuFY+Sr4 sNY+Kv05yl+C+tTSSryZGr5VYfp+ymWF0H0TC1wSGMCeghhK6N5jADBFxojBAvbZU4n1ij YNMhtgAT4njasnugQGUVUivM7p4Yh6GLFtLNUSV8Gk4W5tz8YxZogGhhJBWUrg== 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 4LnRW61FltzSKt; Tue, 19 Jul 2022 18:02: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 26JI2QJI075738; Tue, 19 Jul 2022 18:02:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26JI2QdJ075729; Tue, 19 Jul 2022 18:02:26 GMT (envelope-from git) Date: Tue, 19 Jul 2022 18:02:26 GMT Message-Id: <202207191802.26JI2QdJ075729@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: eafd8e4ec6a4 - stable/13 - Adjust parse() definition in boot2 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: eafd8e4ec6a42c620ea46714f8590320a8873922 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658253746; 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=n4mgP9sM++oU5dKH0yr0S9mW4UYO2W2lWm4DX9mwGgA=; b=oLsYEaqEqoIWnM1AZXKBdGvGQyze+qcKady2hZBCMpmDw45rvaW9PBGFbQR+NXHC6NvEy/ XDraXPdF0yIFrC3X7CJOWDlhFKJPzavb19SNlwiDZyCxptYiguOoKvjlfts5tD4FxDFh/E l7OTZiwhDIDM9fBcbQ9cKUe2JqdqqLn6z2QWhF1fWoCqeUUZyQzyM7G34znLt+/AHxoewZ kLt7DIeCVDgYGrWhyAjfW83KWc6o87kktdh5t3RXWarlVrUN40uwvGosKnkWc+ofXGVhiT kM0L9ErnDn4D8WlqbwsCrPrzIR0wYJ4sdp70300D4KhTefoTCPfFmDbV1PqQmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658253746; a=rsa-sha256; cv=none; b=G0of6dO7tmBMaDYnfiz4jcpsjgWhUv2hR4Pj10tTc/BU11ymZH/NDPcbcgx2dnVVnQ2otf EECvaGjk/wll9ovaKb2jaEyqCMMV4+p/UqDH14s7Q0+7XQ5ihAHxaKrD8bXzuKKITty+4J Lhh53IoOiYbyphzYEW9fhrgVG1my6y6q5B9sBfqABAbdEIaY4UnnPsAxnqOC6VfjPcCiVQ Sn3Vs1EvoEBudX/WXZ38nTqSacObt8iPau6gX3rh9EpNdMio8FjVi/14pQqKagbUv2iDvj 9eSFBJ+RTRYpaBDKJgvyn0dRHx3TxFrYNmflb6sNRfw7KveIVyqGt8fngdQErQ== 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=eafd8e4ec6a42c620ea46714f8590320a8873922 commit eafd8e4ec6a42c620ea46714f8590320a8873922 Author: Dimitry Andric AuthorDate: 2022-07-15 19:15:11 +0000 Commit: Dimitry Andric CommitDate: 2022-07-19 18:00:50 +0000 Adjust parse() definition in boot2 to avoid clang 15 warning With clang 15, the following -Werror warning is produced: stand/i386/boot2/boot2.c:358:6: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] This is because parse() is declared with a (void) argument list, and defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit e60f6384f9dbe3abe83e59acf0997c591752ff81) --- stand/i386/boot2/boot2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/i386/boot2/boot2.c b/stand/i386/boot2/boot2.c index 898a8c27df19..0c35fe9b7d93 100644 --- a/stand/i386/boot2/boot2.c +++ b/stand/i386/boot2/boot2.c @@ -355,7 +355,7 @@ load(void) } static int -parse() +parse(void) { char *arg, *ep, *p, *q; const char *cp;