From 402dbdd98acc7fa94d1d4cd01903e987d2409336 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 15 Aug 2022 20:02:13 +0200 Subject: [PATCH] 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;