]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in kern_poll.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 19:03:39 +0000 (21:03 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 19:27:34 +0000 (21:27 +0200)
commit9762d48b7f12f7085d3f6ad83b3ca5ebd226b697
tree7116aa8ec45d52466490e74b3ca9e6b8ed1c6f00
parent7a7bbe10216e0fbcf3af7a122d249cb000d517c7
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
sys/kern/kern_poll.c