HomeFreeBSD

Adjust function definition in isa's pnp.c to avoid clang 15 warning

Description

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)

Details

Provenance
dimAuthored on Jul 27 2022, 7:02 PM
Parents
rG096c0b9b469b: sched_ule: Ensure we hold the thread lock when modifying td_flags
Branches
Unknown
Tags
Unknown