Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2022 11:01:48 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: ff90edf507d1 - stable/13 - Adjust fbt_unload() definition to avoid clang 15 warning
Message-ID:  <202207241101.26OB1m34040775@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=ff90edf507d14727c0285b9d3174c1c788ad8338

commit ff90edf507d14727c0285b9d3174c1c788ad8338
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-21 17:40:38 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-24 11:00:08 +0000

    Adjust fbt_unload() definition to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/cddl/dev/fbt/fbt.c:1273:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        fbt_unload()
                  ^
                   void
    
    This is because fbt_unload() 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 6339314c737f44477c1168819353087c2f4816eb)
---
 sys/cddl/dev/fbt/fbt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/dev/fbt/fbt.c b/sys/cddl/dev/fbt/fbt.c
index aee5376d5981..a71c785d1255 100644
--- a/sys/cddl/dev/fbt/fbt.c
+++ b/sys/cddl/dev/fbt/fbt.c
@@ -1282,7 +1282,7 @@ fbt_load(void *dummy)
 }
 
 static int
-fbt_unload()
+fbt_unload(void)
 {
 	int error = 0;
 



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