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>
This commit is contained in:
parent
133bd4443b
commit
9bcddaf961
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue
Block a user