Initialize last_type to 0 to silence two spurious maybe-uninitialized warnings.
We issue an LF_INDEX continuation subtype for any LF_FIELDLISTs that
overflow, so LF_INDEXes will always have a subtype preceding them (and
thus last_type will always be set).
gcc/
* dwarf2codeview.cc (get_type_num_enumeration_type): Initialize last_type
to 0.
(get_type_num_struct): Likewise.
dw_die_ref first_child;
codeview_custom_type *ct;
uint16_t count = 0;
- uint32_t last_type;
+ uint32_t last_type = 0;
if (get_AT_flag (type, DW_AT_declaration))
return add_enum_forward_def (type);
dw_die_ref first_child;
codeview_custom_type *ct;
uint16_t num_members = 0;
- uint32_t last_type;
+ uint32_t last_type = 0;
const char *name;
if ((in_struct && get_AT_string (type, DW_AT_name))