aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-27 19:02:51 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-27 19:13:59 +0000
commit24e8823ef579b99b32c00a7a126a78f91727498a (patch)
tree8c2ec2de7cea444bb51842ce1d5aac38646a70ca
parent02a226ac342f0fb622e654e461c41f4f588f4186 (diff)
downloadsrc-24e8823ef579b99b32c00a7a126a78f91727498a.tar.gz
src-24e8823ef579b99b32c00a7a126a78f91727498a.zip
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
-rw-r--r--sys/isa/pnp.c2
1 files changed, 1 insertions, 1 deletions
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;