From nobody Wed Jul 27 19:14:22 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 4LtNkQ4ZhCz4XRlT; Wed, 27 Jul 2022 19:14:22 +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 4LtNkQ46wzz3Dhq; Wed, 27 Jul 2022 19:14:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949262; 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=+mugZoeIb6GcZrVdsYHlH9lcPd/pb0uf++IZOJnJp2w=; b=Q63S4npQegbcC88E9GOb3q5mgNGvnIC1tbQlmept1n3CqmF2oCPf9chFko0h6cgQquyh/x vPnl27HYjdaT4hLz/ozqjRBk9rN6VjD4C7Qe1XplhM85YUnRVLnXgkAGpv6Ww6R7audnFT +rN0jftW5UKNQYpmDNPGrxPfFXPiNv4LGuUSwEU8FTZfvPIIpfu6HnuZoa5EPZUHvtnPnw l6MnJskUNKRZgcg0DUrL7LKIq9cT2mmFYzEmbMGTUoT/JhjeIHG2WVkb2Zxp9KIyx9J5Ku dkc9m/hQeSBbQGEk7HNJmTtkFwWkq7pukQyx+NLtdnkOFadqs2XLVFr1SGf3gQ== 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 4LtNkQ2l3JzSDY; Wed, 27 Jul 2022 19:14:22 +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 26RJEMiQ058202; Wed, 27 Jul 2022 19:14:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJEMxi058201; Wed, 27 Jul 2022 19:14:22 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:14:22 GMT Message-Id: <202207271914.26RJEMxi058201@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: 24e8823ef579 - main - Adjust function definition in isa's pnp.c 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: 24e8823ef579b99b32c00a7a126a78f91727498a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949262; 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=+mugZoeIb6GcZrVdsYHlH9lcPd/pb0uf++IZOJnJp2w=; b=amk6/QT2nKPx8t3ePoJTIEDUhS8ejfQbOC6qd0yJvll7rnNSUL/UAZuXx4KWM0S2/zGonH cHasXyvz7Zy6oNCB98+O6F4aL7GEmQiKei+p012iAJ3efu0S9AW7T2zbG05WXr8rCR29r8 qkKv8GMWc/NZ3jojeaEab+NbgjxPaRQMqvQ9EwgrRCVzeU/uJ6REjLhPPw1SwisD6dytmE RTffTA0BVuNsIHS7h7C6cnK9p95/4c3f9BT39+ZbjIlAW/kaOzRLVlsmFYrviTXHX3fid7 WwgRHCIqWRdk8FjYsSGf9lddV+SgY53xemoNjSAnmkN8SQ9BTLyVS2kjUpSdqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949262; a=rsa-sha256; cv=none; b=Wj0zusb7cZV1F/bWP5nadxVrP7lUZWI3D7TDHDUhdTgwT0Ag4W1I1h0yKWHlIR/2fe/ufW Ksbc9EFGzC2ZoR1+xA/UhHzoAanoutRc6KAZPJpQoV/mhpbr7h7xeSCBg09mtg/CffLP1V yG1i0abuPiFkFKgaGBewfkJislFA/JqcFRT47vXzReaofBb8pgca1gfbeowYPChbtQhoN/ xDJvKGEwGSLjcOvyyhFjDMg0PsAfG9Nim9H0YHhm6UTf8JehH5vQAsN4VMJWWpeDsarrC5 TrW21MX+JrFIInsmu9db1lnmGt8qMX6W3BrY+77IHrOiQylO8Y9uBiNW6I8SbQ== 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=24e8823ef579b99b32c00a7a126a78f91727498a commit 24e8823ef579b99b32c00a7a126a78f91727498a Author: Dimitry Andric AuthorDate: 2022-07-27 19:02:51 +0000 Commit: Dimitry Andric CommitDate: 2022-07-27 19:13:59 +0000 Adjust function definition in isa's pnp.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/isa/pnp.c:118:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] pnp_send_initiation_key() ^ void This is because pnp_send_initiation_key() 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/isa/pnp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/isa/pnp.c b/sys/isa/pnp.c index 462814616cca..831d20e10a43 100644 --- a/sys/isa/pnp.c +++ b/sys/isa/pnp.c @@ -115,7 +115,7 @@ pnp_write(int d, u_char r) * Intel May 94. */ static void -pnp_send_initiation_key() +pnp_send_initiation_key(void) { int cur, i;