tdfx: Silence unused variable warning on non-debug builds.
authorVinson Lee <vlee@vmware.com>
Wed, 13 Oct 2010 05:15:53 +0000 (22:15 -0700)
committerVinson Lee <vlee@vmware.com>
Wed, 13 Oct 2010 05:23:21 +0000 (22:23 -0700)
Fixes this GCC warning.
tdfx_texman.c: In function 'tdfxTMMoveOutTM_NoLock':
tdfx_texman.c:897: warning: unused variable 'shared'

src/mesa/drivers/dri/tdfx/tdfx_texman.c

index 726cc58a10b63625c7c4bad457d8b063c4261ad4..dc464539166b1c14e90f5ce4d2b96ebc8d84df79 100644 (file)
@@ -917,6 +917,7 @@ tdfxTMMoveOutTM_NoLock( tdfxContextPtr fxMesa, struct gl_texture_object *tObj )
     case TDFX_TMU_SPLIT:
     case TDFX_TMU_BOTH:
         assert(!shared->umaTexMemory);
+        (void) shared;
         RemoveRange_NoLock(fxMesa, TDFX_TMU0, ti->tm[TDFX_TMU0]);
         RemoveRange_NoLock(fxMesa, TDFX_TMU1, ti->tm[TDFX_TMU1]);
         break;