Date: Sun, 21 Aug 2022 11:29:36 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: 4cfadd41f00f - stable/12 - Adjust function definition in drm_fb_helper.c to avoid clang 15 warning Message-ID: <202208211129.27LBTaJN005111@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4cfadd41f00f6bcdf73fe730486441e4774d5603 commit 4cfadd41f00f6bcdf73fe730486441e4774d5603 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:18:40 +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 cf98d2f9dfec..781c6ef01738 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.27LBTaJN005111>