diff options
author | Mark Harmstone <mark@harmstone.com> | 2024-08-12 23:19:55 +0100 |
---|---|---|
committer | Mark Harmstone <mark@harmstone.com> | 2024-08-16 21:45:05 +0100 |
commit | 2e2a1cae88522b1966ec01db4c5fda4dbb5949ef (patch) | |
tree | b09adbc17a54c54f71e5bf06b7d91ca2eaa6e9e0 /gcc/machmode.h | |
parent | c8981bde45d365330a5e7c2e33c8dbaf3495248a (diff) | |
download | gcc-2e2a1cae88522b1966ec01db4c5fda4dbb5949ef.zip gcc-2e2a1cae88522b1966ec01db4c5fda4dbb5949ef.tar.gz gcc-2e2a1cae88522b1966ec01db4c5fda4dbb5949ef.tar.bz2 |
Fix maybe-uninitialized CodeView LF_INDEX warning
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.
Diffstat (limited to 'gcc/machmode.h')
0 files changed, 0 insertions, 0 deletions