summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorKai Wasserbäch <[email protected]>2019-09-28 18:50:03 +0200
committerTimothy Arceri <[email protected]>2019-11-07 11:32:55 +1100
commit8aa4d0bff65de73a712063bb8b3853919300f925 (patch)
treeb0322010f84edd871db1f545e4cc32796feeabab /src/compiler/nir
parent5a40e153fd7df58a6419cf2e6211828d7d31cf4e (diff)
nir: fix unused variable warning in nir_lower_vars_to_explicit_types
This commit fixes the following warning: ../src/compiler/nir/nir_lower_io.c: In function ‘nir_lower_vars_to_explicit_types’: ../src/compiler/nir/nir_lower_io.c:1435:22: warning: unused variable ‘supported’ [-Wunused-variable] 1435 | nir_variable_mode supported = nir_var_mem_shared | nir_var_shader_temp | nir_var_function_temp; | ^~~~~~~~~ Signed-off-by: Kai Wasserbäch <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_lower_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c
index 745ef92ddf3..1483ef208c3 100644
--- a/src/compiler/nir/nir_lower_io.c
+++ b/src/compiler/nir/nir_lower_io.c
@@ -1432,7 +1432,8 @@ nir_lower_vars_to_explicit_types(nir_shader *shader,
* - compact shader inputs/outputs
* - interface types
*/
- nir_variable_mode supported = nir_var_mem_shared | nir_var_shader_temp | nir_var_function_temp;
+ ASSERTED nir_variable_mode supported = nir_var_mem_shared |
+ nir_var_shader_temp | nir_var_function_temp;
assert(!(modes & ~supported) && "unsupported");
bool progress = false;