From nobody Tue Jul 19 18:02:57 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 4LnRWk2cYwz4Wglm; Tue, 19 Jul 2022 18:02:58 +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 4LnRWj5Nztz4515; Tue, 19 Jul 2022 18:02:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658253777; 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=QfBMgzYl704L+3TSp0j0BR6rWg7k+Gr9qwuxI6QFEpY=; b=d+/cusegEWJT3VSlhztAy9B5jig8s8+4aptw1RUYruWVlhsjdbeNnnvvi4m6xYbp/9wy45 h2FDH5BFXlQHNDRZW5A9lQYYFE+sCNuf9Ohyy573HKNpcmP3a1lKg0BYmFXy0+WRsHPo6v JJ9u5NQdNTfclWI4NkYcbZ70C6Wh0ogsVXyQ637/0RiNkz08oq91D8DAyV+b4ebqyHrP/t DCdwKDPSd+VPDEH2/Gm619JTfmdzFvCyAK/w3LZOcMQK72naaHLN/GlbAALu2bUrkb/JQt ngkmFOrGcvkirXlQ4/SN2oNR0hNuAGL3j3Jdv+ozFiry4pEuMNM7qFoVsVChTA== 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 4LnRWj4KR3zSl4; Tue, 19 Jul 2022 18:02:57 +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 26JI2vJQ077887; Tue, 19 Jul 2022 18:02:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26JI2vwf077886; Tue, 19 Jul 2022 18:02:57 GMT (envelope-from git) Date: Tue, 19 Jul 2022 18:02:57 GMT Message-Id: <202207191802.26JI2vwf077886@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: fb4080f7887b - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: fb4080f7887bee6739217d2f2ec5155785728344 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658253777; 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=QfBMgzYl704L+3TSp0j0BR6rWg7k+Gr9qwuxI6QFEpY=; b=Ie0gBJCIT/gvJDfU+nEDFrqYs2wQKiuiY5nZeYhcZ914j/LniXKth9j/pX+xw/BXcZp5fz m1ZIDg6XmraJXnSEI5LUuFu6P9NASo/OMbK/t9DWpwRnfcV8Qaa4PiI+lHC6OK0wY7wbu9 wjukL0Imfwh1A6sIVTjKmi6pas5XPGOcAutPdMmEjt/i8lEA02z+KFBbYwRSZqYcHZoKy4 8vsUxE2V448zhmy5xqkZbQcnzPf/A2z9U7v3J7JTeOLgCjwQ2mSQA2lK4TAXvTmt+m33oX w8qlBKYDgSnYWbKacaAUFFfHeNbEgsgJpHRYzuAsc9a/mDVYKsH4kbVMDhQVmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658253777; a=rsa-sha256; cv=none; b=Eghwik02fKc4xAl6VMTY7N80G3FqAhUgAeV6UNGeiLkBLPc/o5Sy8CcS0cDx3GnKNyfBf1 +jeRoJySQ/8ip9x0EE+hqat/mwujTuc459WLeDV37RAXxh2wTVK8TV17+rQAlXO8yuyXad +pdB+/azHI3ki4bAGBwuaPsbv+MmCJUFQ8vx80KVYtiuzxX8inH3KpErm+quKA3JD/D+3p WBpUq6k1hvEZbXXhCvcXWq/KwAsjruGVhQZBSr0pAQiUnGV1NEKG0B8pIbkoEgg3lCaI/e H+7heXiErPHQZW6SpaP9w6l7Fr9mJLX2QtEykrdMTmU74JeyDc73teTpUX8mMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=fb4080f7887bee6739217d2f2ec5155785728344 commit fb4080f7887bee6739217d2f2ec5155785728344 Author: Dimitry Andric AuthorDate: 2022-07-15 19:15:11 +0000 Commit: Dimitry Andric CommitDate: 2022-07-19 18:00:46 +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;