]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in drm_fb_helper.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 19:01:31 +0000 (21:01 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 19:27:34 +0000 (21:27 +0200)
commit7a7bbe10216e0fbcf3af7a122d249cb000d517c7
tree4409f5a56fb4043b54c6fc44a9e13a82ee1f46f6
parent0beb88a242afbf7923e97cf317640d0f29310ca1
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