Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2022 11:29:39 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a1d2106afbf6 - stable/12 - Adjust function definition in arm's mv_common.c to avoid clang 15 warning
Message-ID:  <202208211129.27LBTd26005196@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=a1d2106afbf6128420a43e5756a240f466f92b5e

commit a1d2106afbf6128420a43e5756a240f466f92b5e
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:20:41 +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 31d0711ad0a8..2f1d0cd5f7ce 100644
--- a/sys/arm/mv/mv_common.c
+++ b/sys/arm/mv/mv_common.c
@@ -432,7 +432,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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208211129.27LBTd26005196>