From: Emil Velikov Date: Mon, 8 Jul 2013 17:29:17 +0000 (+0100) Subject: glsl/ast: Silence uninitialized variable warnings in the release build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4df6823f2147c17161c2cacc89d1a5c17a87aad3;p=mesa.git 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 --- 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!"); }