git: 7a7bbe10216e - main - Adjust function definition in drm_fb_helper.c to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Aug 2022 19:27:54 UTC
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=7a7bbe10216e0fbcf3af7a122d249cb000d517c7 commit 7a7bbe10216e0fbcf3af7a122d249cb000d517c7 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-08-14 19:01:31 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-08-14 19:27:34 +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 --- 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 c5ec36724a35..0405ca68bfa6 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;