diff options
author | Adam Jackson <ajax@redhat.com> | 2018-02-14 17:20:16 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-02-14 17:20:16 -0500 |
commit | 9bcddaf9619d01cdbf965cedb9f86a08ed6dc524 (patch) | |
tree | 91fe53325ffaaeece7cb495457e6e093e9139041 | |
parent | 133bd4443be6b76a36afadfae0905b832e998165 (diff) |
dri2: warning fix
/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 <ajax@redhat.com>
-rw-r--r-- | glx/glxdri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |