diff --git a/src/compiler/nir/nir_lower_io_to_vector.c b/src/compiler/nir/nir_lower_io_to_vector.c index c20d5b4d3cb..879381e109a 100644 --- a/src/compiler/nir/nir_lower_io_to_vector.c +++ b/src/compiler/nir/nir_lower_io_to_vector.c @@ -160,7 +160,7 @@ get_flat_type(const nir_shader *shader, nir_variable *old_vars[MAX_SLOTS][4], unsigned todo = 1; unsigned slots = 0; unsigned num_vars = 0; - enum glsl_base_type base; + enum glsl_base_type base = GLSL_TYPE_ERROR; *num_vertices = 0; *first_var = NULL;