From 4df6823f2147c17161c2cacc89d1a5c17a87aad3 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 8 Jul 2013 18:29:17 +0100 Subject: 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 Reviewed-by: Ian Romanick --- src/glsl/ast_to_hir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/glsl') 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!"); } -- cgit v1.2.3