Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2022 11:29:03 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: 71554ce0cdd1 - stable/13 - Adjust function definition in drm_fb_helper.c to avoid clang 15 warning
Message-ID:  <202208211129.27LBT31u004283@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=71554ce0cdd17b1ed6aef734fb15f150dc3af21e

commit 71554ce0cdd17b1ed6aef734fb15f150dc3af21e
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-14 19:01:31 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:10:50 +0000

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

diff --git a/sys/dev/drm2/drm_fb_helper.c b/sys/dev/drm2/drm_fb_helper.c
index 8cb913570c13..507b14b06457 100644
--- a/sys/dev/drm2/drm_fb_helper.c
+++ b/sys/dev/drm2/drm_fb_helper.c
@@ -83,7 +83,7 @@ vt_kms_postswitch(void *arg)
 }
 
 struct fb_info *
-framebuffer_alloc()
+framebuffer_alloc(void)
 {
 	struct fb_info *info;
 	struct vt_kms_softc *sc;



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