Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2022 08:58:12 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: 09ed6ce409aa - stable/13 - Adjust fbd_list() definition to avoid clang 15 warning
Message-ID:  <202207230858.26N8wCHn012501@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=09ed6ce409aa29b10e7fa03c105476130036a678

commit 09ed6ce409aa29b10e7fa03c105476130036a678
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-19 18:35:37 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-23 08:56:43 +0000

    Adjust fbd_list() definition to avoid clang 15 warning
    
    With clang 15, the following -Werror warnings is produced:
    
        sys/dev/fb/fbd.c:205:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        fbd_list()
                ^
                 void
    
    This is because fbd_list() 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 9863e501c8d482dc47e856a2778dc3cbf6eb6d22)
---
 sys/dev/fb/fbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/fb/fbd.c b/sys/dev/fb/fbd.c
index e577768eafdb..ce7c0b711eba 100644
--- a/sys/dev/fb/fbd.c
+++ b/sys/dev/fb/fbd.c
@@ -202,7 +202,7 @@ fb_init(struct fb_list_entry *entry, int unit)
 }
 
 int
-fbd_list()
+fbd_list(void)
 {
 	struct fb_list_entry *entry;
 



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