summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2016-04-16 04:00:11 +0300
committerIan Romanick <[email protected]>2016-04-25 12:23:16 +0200
commitbbeb9ab2f71409aad47485e7a1b8900f6839a481 (patch)
tree6b7d153bb8b6dc9ce3926881637e16209dc5f747 /src/compiler
parente4fc06a2f8be2de3a08d4adfa4a26df2ae0b5cae (diff)
glsl: fix warning in release build
Mark variable MAYBE_UNUSED to avoid unused-but-set-variable warning in release build. Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/lower_buffer_access.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_buffer_access.cpp b/src/compiler/glsl/lower_buffer_access.cpp
index f85b421cf27..59a2ae8c69e 100644
--- a/src/compiler/glsl/lower_buffer_access.cpp
+++ b/src/compiler/glsl/lower_buffer_access.cpp
@@ -283,7 +283,7 @@ lower_buffer_access::is_dereferenced_thing_row_major(const ir_rvalue *deref)
* layouts at HIR generation time, but we don't do that for shared
* variables, which are always column-major
*/
- ir_variable *var = deref->variable_referenced();
+ MAYBE_UNUSED ir_variable *var = deref->variable_referenced();
assert((var->is_in_buffer_block() && !matrix) ||
var->data.mode == ir_var_shader_shared);
return false;