summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_algebraic.py
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-04-07 15:03:39 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-04-11 18:44:08 -0700
commit808d26c771541603544444ad5d8794e37e37e379 (patch)
treebe094acaccca131c4304f63773bba19f90c5730a /src/compiler/nir/nir_algebraic.py
parent5886cd79a0ed10b887840f6afb980a5a6a47e26e (diff)
downloadexternal_mesa3d-808d26c771541603544444ad5d8794e37e37e379.zip
external_mesa3d-808d26c771541603544444ad5d8794e37e37e379.tar.gz
external_mesa3d-808d26c771541603544444ad5d8794e37e37e379.tar.bz2
nir: Silence unused "options" warning in algebraic passes.
Some passes may not refer to options->..., at which point the compiler will warn about an unused variable. Just cast to void unconditionally to shut it up. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eduardo Lima Mitev <elima@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/compiler/nir/nir_algebraic.py')
-rw-r--r--src/compiler/nir/nir_algebraic.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py
index d05564f..53a7907 100644
--- a/src/compiler/nir/nir_algebraic.py
+++ b/src/compiler/nir/nir_algebraic.py
@@ -291,6 +291,7 @@ ${pass_name}(nir_shader *shader)
bool progress = false;
bool condition_flags[${len(condition_list)}];
const nir_shader_compiler_options *options = shader->options;
+ (void) options;
% for index, condition in enumerate(condition_list):
condition_flags[${index}] = ${condition};