]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in arm's mv_common.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:02:13 +0000 (20:02 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:48:33 +0000 (20:48 +0200)
commit402dbdd98acc7fa94d1d4cd01903e987d2409336
treeae73eb47de642f14496473ff4297c36ebf0d0f4c
parent729c458bf7cc4ff7df616617b6ac5f4b83537dc3
Adjust function definition in arm's mv_common.c to avoid clang 15 warning

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

    sys/arm/mv/mv_common.c:414:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    mv_check_soc_family()
                       ^
                        void

This is because mv_check_soc_family() 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/arm/mv/mv_common.c