diff options
author | Emil Velikov <[email protected]> | 2013-07-08 18:29:17 +0100 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-08 19:08:30 -0700 |
commit | 4df6823f2147c17161c2cacc89d1a5c17a87aad3 (patch) | |
tree | 6f097ddef7ac711ef7aaef4b9d703724bb761813 /src/glsl/ast_to_hir.cpp | |
parent | 292368570a13501dfa95b1b0dd70966caf6ffc6b (diff) |
glsl/ast: Silence uninitialized variable warnings in the release build
Resolves the following gcc warnings
warning: 'iface_type_name' may be used uninitialized in this function
warning: 'var_mode' may be used uninitialized in this function
Note: The variables are initialised to UNKNOWN and ir_var_auto
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index cbd9ea35716..611a85dd8e1 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -4229,6 +4229,8 @@ ast_interface_block::hir(exec_list *instructions, var_mode = ir_var_uniform; iface_type_name = "uniform"; } else { + var_mode = ir_var_auto; + iface_type_name = "UNKNOWN"; assert(!"interface block layout qualifier not found!"); } |