]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust check_struct_sizes() definition to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 11:20:58 +0000 (13:20 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 17:59:55 +0000 (19:59 +0200)
commitfb1c21688c5702d0bc50d67359dee4af12d0c693
treecd8ed0a8c36cf40d23528fc5cf9062b9aaa74808
parent24e13a49faabb22ece97dc8e4718caf8f6bad84c
Adjust check_struct_sizes() definition to avoid clang 15 warning

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

    sys/dev/smartpqi/smartpqi_helper.c:374:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    check_struct_sizes()
                      ^
                       void

This is because check_struct_sizes() 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/smartpqi/smartpqi_helper.c