]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust irdma_prep_for_unregister() definition to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Sun, 24 Jul 2022 21:27:24 +0000 (23:27 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 24 Jul 2022 22:40:12 +0000 (00:40 +0200)
commitee6c09ac73b5eab848c66e539f8b3293a5abd7f8
tree2fe2db0055a9f77a83a93dd1e903b036ad34817c
parentf4f847018048ac7699b55bc1915a393eb65e4c53
Adjust irdma_prep_for_unregister() definition to avoid clang 15 warning

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

    sys/dev/irdma/icrdma.c:621:26: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    irdma_prep_for_unregister()
                             ^
                              void

This is because irdma_prep_for_unregister() 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/dev/irdma/icrdma.c