glsl_to_nir: Initialize debug variable
[mesa.git] / src / compiler / glsl / glsl_to_nir.cpp
index 547764982dcf6d0cc7f9417ac2d96f06f774d250..0aeac769452a78d85ddb93eeaa9c6c5c9fdb7087 100644 (file)
@@ -523,7 +523,7 @@ nir_visitor::visit(ir_variable *ir)
          var->type = wrap_type_in_array(explicit_ifc_type, ir->type);
       } else {
          /* Otherwise, this variable is one entry in the interface */
-         UNUSED bool found;
+         UNUSED bool found = false;
          for (unsigned i = 0; i < explicit_ifc_type->length; i++) {
             const glsl_struct_field *field =
                &explicit_ifc_type->fields.structure[i];