glx: Suppress unused variable warning for cmdlen
authorPaul Berry <stereotype441@gmail.com>
Mon, 9 Jan 2012 19:24:17 +0000 (11:24 -0800)
committerPaul Berry <stereotype441@gmail.com>
Wed, 11 Jan 2012 15:57:56 +0000 (07:57 -0800)
commit765ed3a6a9317607311bac1dcb0edee13ebcee16
tree809c4624616b289abd0568a525b8562d6f7dfc42
parentd3150ebc8c1833322daf24b2cd47e31a5b2f8a1f
glx: Suppress unused variable warning for cmdlen

No functional change.  In the function
__indirect_glAreTexturesResident(), the variable cmdlen is only used
if USE_XCB is not defined.  This patch avoids a compile warning in the
event that USE_XCB is defined.

v2: just move cmdlen declaration inside the #else part.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glx/single2.c