git: 402dbdd98acc - main - Adjust function definition in arm's mv_common.c to avoid clang 15 warning
Date: Mon, 15 Aug 2022 18:49:17 UTC
The branch main has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=402dbdd98acc7fa94d1d4cd01903e987d2409336
commit 402dbdd98acc7fa94d1d4cd01903e987d2409336
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-15 18:02:13 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-15 18:48:33 +0000
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/arm/mv/mv_common.c b/sys/arm/mv/mv_common.c
index 6e1d12f8c7a7..c2e25c686583 100644
--- a/sys/arm/mv/mv_common.c
+++ b/sys/arm/mv/mv_common.c
@@ -411,7 +411,7 @@ static int mv_win_cesa_attr_armadaxp(int eng_sel)
}
enum soc_family
-mv_check_soc_family()
+mv_check_soc_family(void)
{
uint32_t dev, rev;