git: dfab304ceeb5 - stable/13 - Adjust function definition in arm's mv_common.c to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Aug 2022 11:29:08 UTC
The branch stable/13 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=dfab304ceeb53b6dac7e1bcfe1ed165aebb19fe5
commit dfab304ceeb53b6dac7e1bcfe1ed165aebb19fe5
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-15 18:02:13 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:13:31 +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
(cherry picked from commit 402dbdd98acc7fa94d1d4cd01903e987d2409336)
---
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 9d2bb17cf309..6aa63cc5a90e 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;