From 9bcddaf9619d01cdbf965cedb9f86a08ed6dc524 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 14 Feb 2018 17:20:16 -0500 Subject: [PATCH] dri2: warning fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /home/ajax/git/xserver/at/../glx/glxdri2.c: In function ‘create_driver_context’: /home/ajax/git/xserver/at/../glx/glxdri2.c:444:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] const __DRIconfig *driConfig = config ? config->driConfig : NULL; I don't know why autotools has decided not to be C99 but at least it's trivial to fix. Signed-off-by: Adam Jackson --- glx/glxdri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 28d5a3a9c..6887e199c 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -440,8 +440,8 @@ create_driver_context(__GLXDRIcontext * context, const uint32_t *attribs, int *error) { - context->driContext = NULL; const __DRIconfig *driConfig = config ? config->driConfig : NULL; + context->driContext = NULL; if (screen->dri2->base.version >= 3) { uint32_t ctx_attribs[4 * 2];