diff options
author | Brian Paul <[email protected]> | 2009-01-20 09:21:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-01-20 09:21:32 -0700 |
commit | 0f548dbc9811838362c8cfaecc10f1fbe8c3dd8d (patch) | |
tree | 002f386f5422aee501b9cead557dca86c38bc67c /src | |
parent | 9d216be8cfe57f88cd2d890c2334df8ff5c30436 (diff) |
glsl: silence unused var warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/slang/slang_mem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_mem.c b/src/mesa/shader/slang/slang_mem.c index 21d6bfce88d..9224578edb0 100644 --- a/src/mesa/shader/slang/slang_mem.c +++ b/src/mesa/shader/slang/slang_mem.c @@ -184,6 +184,7 @@ _slang_realloc(void *oldBuffer, GLuint oldSize, GLuint newSize) #else GET_CURRENT_CONTEXT(ctx); slang_mempool *pool = (slang_mempool *) ctx->Shader.MemPool; + (void) pool; if (newSize < oldSize) { return oldBuffer; @@ -235,6 +236,7 @@ _slang_free(void *addr) if (addr) { GET_CURRENT_CONTEXT(ctx); slang_mempool *pool = (slang_mempool *) ctx->Shader.MemPool; + (void) pool; ASSERT(is_valid_address(pool, addr)); } #endif |