From: Kristian Høgsberg Date: Tue, 4 Mar 2008 00:07:49 +0000 (-0500) Subject: [intel] Silence unused variable warning when compiling for i965. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36c26d321b5d17902f0e8f531654dfb2fe2bdd2d;p=mesa.git [intel] Silence unused variable warning when compiling for i965. --- diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index 48dcf071317..163183487a8 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -180,7 +180,10 @@ int intel_miptree_pitch_align (struct intel_context *intel, struct intel_mipmap_tree *mt, int pitch) { +#ifdef I915 GLcontext *ctx = &intel->ctx; +#endif + if (!mt->compressed) { int pitch_align;