projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d216be
)
glsl: silence unused var warnings
author
Brian Paul
<brianp@vmware.com>
Tue, 20 Jan 2009 16:21:32 +0000
(09:21 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 20 Jan 2009 16:21:32 +0000
(09:21 -0700)
src/mesa/shader/slang/slang_mem.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_mem.c
b/src/mesa/shader/slang/slang_mem.c
index 21d6bfce88d5b5b876997239397f96504b685920..9224578edb00ad2438082cbf3110208f778c3538 100644
(file)
--- 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