When casting Variant to multi-dimensional arrays the length fields are
used as out-parameters and needs to be initialized. They are not guaranteed
to be all set in _variant_get*() in this case.
Fixes tests with -Werror=maybe-uninitialized
var ccall = new CCodeFunctionCall (new CCodeIdentifier (variant_func));
ccall.add_argument (get_cvalue_ (variant));
- var result = create_temp_value (to, false, node);
+ var needs_init = (to is ArrayType);
+ var result = create_temp_value (to, needs_init, node);
var cfunc = new CCodeFunction (variant_func);
cfunc.modifiers = CCodeModifiers.STATIC;