Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2022 11:29:11 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: 9bd70da49a98 - stable/13 - Adjust function definition in aim_machdep.c to avoid clang 15 warning
Message-ID:  <202208211129.27LBTBns004467@gitrepo.freebsd.org>

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

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

commit 9bd70da49a981e6fd6fb5bafed6b114e934604e8
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-15 18:27:56 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:13:32 +0000

    Adjust function definition in aim_machdep.c to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/powerpc/aim/aim_machdep.c:750:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        mpc745x_sleep()
                     ^
                      void
    
    This is because mpc745x_sleep() 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 06fce030e79ecce57365bc537e38ee0f25861d70)
---
 sys/powerpc/aim/aim_machdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c
index 914296440104..8600c1387e16 100644
--- a/sys/powerpc/aim/aim_machdep.c
+++ b/sys/powerpc/aim/aim_machdep.c
@@ -746,7 +746,7 @@ flush_disable_caches(void)
 
 #ifndef __powerpc64__
 void
-mpc745x_sleep()
+mpc745x_sleep(void)
 {
 	static u_quad_t timebase = 0;
 	static register_t sprgs[4];



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