From 90c47206c598fb27b3af97a543d0ca87dd79af85 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 19 Mar 2026 15:35:05 +0000 Subject: [PATCH] glx/windows: Drop static from driwindowsCreateScreen() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > ../src/glx/driwindows_glx.c:445:1: error: static declaration of ‘driwindowsCreateScreen’ follows non-static declaration > 445 | driwindowsCreateScreen(int screen, struct glx_display *priv, bool driver_name_is_inferred) > ../src/glx/glxclient.h:160:20: note: previous declaration of ‘driwindowsCreateScreen’ with type ‘struct glx_screen *(int, struct glx_display *, _Bool)’ > 160 | struct glx_screen *driwindowsCreateScreen(int screen, struct glx_display *priv, bool driver_name_is_inferred); Since driwindowsCreateScreen() is now called directly, rather than via function pointers in the _GLXDRIdisplay structure, it needs to be public. Fixes: 0d78711cfb9f ("glx: delete __GLXDRIdisplay") Signed-off-by: Jon Turney Part-of: --- src/glx/driwindows_glx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/driwindows_glx.c b/src/glx/driwindows_glx.c index ea9146f7fb2..da585b78b9e 100644 --- a/src/glx/driwindows_glx.c +++ b/src/glx/driwindows_glx.c @@ -441,7 +441,7 @@ driwindowsMapConfigs(struct glx_display *priv, int screen, struct glx_config *co return head.next; } -static struct glx_screen * +struct glx_screen * driwindowsCreateScreen(int screen, struct glx_display *priv, bool driver_name_is_inferred) { __GLXDRIscreen *psp;