HomeFreeBSD

Adjust function definition in kern_poll.c to avoid clang 15 warning

Description

Adjust function definition in kern_poll.c to avoid clang 15 warning

With clang 15, the following -Werror warning is produced:

sys/kern/kern_poll.c:374:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
netisr_pollmore()
               ^
                void

This is because netisr_pollmore() 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 9762d48b7f12f7085d3f6ad83b3ca5ebd226b697)

Details

Provenance
dimAuthored on Aug 14 2022, 7:03 PM
Parents
rG71554ce0cdd1: Adjust function definition in drm_fb_helper.c to avoid clang 15 warning
Branches
Unknown
Tags
Unknown