From nobody Mon Aug 01 18:15:34 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 4LxRBG61fhz4XWHT; Mon, 1 Aug 2022 18:15:34 +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 4LxRBG5brGz3kRT; Mon, 1 Aug 2022 18:15:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659377734; 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=RMNHVMahioOIg2m+NmgHSJ4Yfqm8Uxz4t3qWxy1S1tc=; b=eKpEUkv4qGuxAXvqea6cgrJJHZlHOBwFT9+w2nMA/3cDA2WO2gs8KNBQVYpcOv/rBkhsga BNyZ4dnZ6RRk8UzhYJyGLx2zgk2BkQroGQhU4Y501KG59qCRbfh383/Q0Fh+YddsKrIX1F N2WJKlFyuE8kcAU07ZGrwFjv89KnBrerYpd0JBcm/oat+IpiykSTViQOHiK9oVpEWKsIR1 0lgQWzFv+WV4x3bPOC7zNXuzW7RtU4gJAZ/E9DN6vp0JZ2CcA/UO2CvvXyevCDWIcPTmH6 8zrWHzXjjKcCVPyEwbBj5Zppt83xCmfO0mPzhp9XSlyLcOa29TAyjAhtMiwlCw== 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 4LxRBG4Z0yzj9P; Mon, 1 Aug 2022 18:15:34 +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 271IFYrR049309; Mon, 1 Aug 2022 18:15:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 271IFY78049308; Mon, 1 Aug 2022 18:15:34 GMT (envelope-from git) Date: Mon, 1 Aug 2022 18:15:34 GMT Message-Id: <202208011815.271IFY78049308@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: b8ded2ea3a97 - stable/12 - 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/stable/12 X-Git-Reftype: branch X-Git-Commit: b8ded2ea3a97a7db6d4dedf5e2d84f76ed055e6e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659377734; 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=RMNHVMahioOIg2m+NmgHSJ4Yfqm8Uxz4t3qWxy1S1tc=; b=In6JQ8wxGi9bZNnHSgCO455Rt/uO0Ox9JN5HBC7P/i/t1Puot+ko/lvDGSXDpVtMd2bH1O 4U0/Bv2a3k831e60yMzwu2HUx76xfiXHePE8emOMltsVRoxuYL6EsZ/tf30pMsgSE6edOe 8NQZlYxapluVV9WHqd9f5zDMVWMDtl+o3H8t9Ieh/3TKwVErbp6t3witOwpRX7l3lhWBSD EzWlKoguqnkfp+D2aBDm89gifwDXPfml4urS7cO3j0qHskY9gmxFqv+YVbi+LU1pYDGNvO frAcpsuULriK2Fcao82pwVhObEwXwt4pqJ8yvQ4G+sewlIfruxUiRqccW4GEsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659377734; a=rsa-sha256; cv=none; b=uRgE7C9rBBBMeelzKPvBkYWkJTxnPGjYw+Uf48Rl2wfM7ZQly4kbJUBfB7PuLoi2zu54De bjqpoD0ra5RZObuZsb6+MbUKJ8YsmHW2PLn4HICtDaibVYCC0mOxZFqGMrLXIa/JYALbdG X3fdkuWhINbdOqWxoPW11XnfEFIoKWPU35/tWb8M+yyguPP2JGmpDhBQ5X5rrASh/Bbny9 nwES1qzXajraoyGO8uPtD/d8+rcd2KBPhe1qypV8INjea1ZE7i2Ff+9ZgdKJDx2Y9WO17y RdoFp0zL6o8lIuUGfSKmtuSa7ku5Vp+MC7AU8k+UZXuAh2LGDEKEDCxdDtZq4g== 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=b8ded2ea3a97a7db6d4dedf5e2d84f76ed055e6e commit b8ded2ea3a97a7db6d4dedf5e2d84f76ed055e6e Author: Dimitry Andric AuthorDate: 2022-07-27 19:02:51 +0000 Commit: Dimitry Andric CommitDate: 2022-08-01 18:08:32 +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 (cherry picked from commit 24e8823ef579b99b32c00a7a126a78f91727498a) --- 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 c2c66e08c208..768c2c4dd3ed 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;