mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 08:20:12 +01:00
glsl: Silence unused variable warning in the release build
Resolves the following gcc warning
opt_flip_matrices.cpp:84:32: warning: unused variable 'deref'
v2: keep the variable, but wrap it in a ifndef NDEBUG block
(suggested by Ian)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
4df6823f21
commit
f0260f4e3d
1 changed files with 2 additions and 0 deletions
|
|
@ -81,8 +81,10 @@ matrix_flipper::visit_enter(ir_expression *ir)
|
|||
|
||||
if (mvp_transpose &&
|
||||
strcmp(mat_var->name, "gl_ModelViewProjectionMatrix") == 0) {
|
||||
#ifndef NDEBUG
|
||||
ir_dereference_variable *deref = ir->operands[0]->as_dereference_variable();
|
||||
assert(deref && deref->var == mat_var);
|
||||
#endif
|
||||
|
||||
void *mem_ctx = ralloc_parent(ir);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue