Avoid compiler warning for unused glx_dpy variable.
authorCarl Worth <cworth@cworth.org>
Wed, 28 Jul 2010 17:33:27 +0000 (10:33 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 28 Jul 2010 17:33:27 +0000 (10:33 -0700)
commit14a3d61ea37c0b0a2bf211a12118e592c3e0677b
treefdd4c70fc453668218d4f34b20307f9566ed9dd5
parent742ee7935da60dda974795243d2e0fcf31accb59
Avoid compiler warning for unused glx_dpy variable.

My earlier attempt to eliminate this warning (c0ca2bfb2ad8c) was
invalid as it removed the variable declaration. Jerome correctly
reverted that (600c85efdb0ff) since the variable is used when
X_DRI2SwapBuffers is defined.

Here, instead of removing the declaration, we move it to inside the
correct #ifdef.
src/glx/dri2.c