]> 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>
Fri, 29 Jul 2022 18:31:13 +0000 (20:31 +0200)
commit105f9406c95593f0c887932f4087fac490ddefe6
tree25ace9c17a07fb7802a81938e8d450d4da6c5355
parentbe93526576ceb4bbb9511738dd7b6d95d69a71a1
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

(cherry picked from commit fb1c21688c5702d0bc50d67359dee4af12d0c693)
sys/dev/smartpqi/smartpqi_helper.c