nvfx: Silence unused variable warning.
authorVinson Lee <vlee@vmware.com>
Sun, 22 Aug 2010 07:16:54 +0000 (00:16 -0700)
committerVinson Lee <vlee@vmware.com>
Sun, 22 Aug 2010 07:16:54 +0000 (00:16 -0700)
The variable is used but only in the body of an assert.

src/gallium/drivers/nvfx/nv04_2d.c

index c7d53a786f28ded6e7044ed08744939a5b821e56..3761002bcb990c3040fd25c24bad4325dec45228 100644 (file)
@@ -247,6 +247,7 @@ nv04_region_assert(struct nv04_region* rgn, unsigned w, unsigned h)
 
        assert(rgn->offset <= (int)rgn->bo->size);
        assert(end <= rgn->bo->size);
+       (void) end;
        if(!rgn->pitch) {
                assert(util_is_pot(rgn->w));
                assert(util_is_pot(rgn->h));