mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 08:40:37 +02:00
glsl: silence unused var warnings
This commit is contained in:
parent
9d216be8cf
commit
0f548dbc98
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue