diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2013-07-08 18:29:17 +0100 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2013-07-08 19:08:30 -0700 |
commit | 4df6823f2147c17161c2cacc89d1a5c17a87aad3 (patch) | |
tree | 6f097ddef7ac711ef7aaef4b9d703724bb761813 /src/glsl | |
parent | 292368570a13501dfa95b1b0dd70966caf6ffc6b (diff) | |
download | external_mesa3d-4df6823f2147c17161c2cacc89d1a5c17a87aad3.zip external_mesa3d-4df6823f2147c17161c2cacc89d1a5c17a87aad3.tar.gz external_mesa3d-4df6823f2147c17161c2cacc89d1a5c17a87aad3.tar.bz2 |
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 <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl')
-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 cbd9ea3..611a85d 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!"); } |