loader: fixes -Werror,-Wdeprecated-non-prototype for clang-15 in pipe-loader
authorYonggang Luo <luoyonggang@gmail.com>
Fri, 4 Nov 2022 13:03:08 +0000 (21:03 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Dec 2022 19:02:17 +0000 (19:02 +0000)
commitfb6b3bee251061980121144f36366a9aaf05afab
tree2cd4cdf371a3ce6773dc863782a2c8322299a025
parentcd8f2b51a0291ba470a3ecaca62d551b840dc6f3
loader: fixes -Werror,-Wdeprecated-non-prototype for clang-15 in pipe-loader

There are multiple error messages, show one of them:
../../src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c:219:54: error: passing arguments to a function without a prototype is deprecated in
all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
         sdev->ws = sdev->dd->winsys[i].create_winsys(drisw_lf);
                                                     ^

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19875>
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
src/gallium/include/frontend/sw_driver.h
src/gallium/targets/pipe-loader/pipe_swrast.c