Mesa (master): nir: fix unused variable warning in nir_lower_vars_to_explicit_types
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Nov 7 00:36:50 UTC 2019
Module: Mesa
Branch: master
Commit: 8aa4d0bff65de73a712063bb8b3853919300f925
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8aa4d0bff65de73a712063bb8b3853919300f925
Author: Kai Wasserbäch <kai at dev.carbon-project.org>
Date: Sat Sep 28 18:50:03 2019 +0200
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 <kai at dev.carbon-project.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/compiler/nir/nir_lower_io.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
More information about the mesa-commit
mailing list