The branch stable/13 has been updated by dim:

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

commit 9bd70da49a981e6fd6fb5bafed6b114e934604e8
Author:     Dimitry Andric <[email protected]>
AuthorDate: 2022-08-15 18:27:56 +0000
Commit:     Dimitry Andric <[email protected]>
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];

Reply via email to