| Submitter | Ian Taylor |
|---|---|
| Date | Nov. 20, 2012, 5:28 p.m. |
| Message ID | <mcrehjoxjyu.fsf@google.com> |
| Download | mbox | patch |
| Permalink | /patch/200488/ |
| State | New |
| Headers | show |
Comments
Patch
Index: dwarf.c =================================================================== --- dwarf.c (revision 193484) +++ dwarf.c (working copy) @@ -654,6 +654,12 @@ read_attribute (enum dwarf_form form, st const unsigned char *dwarf_str, size_t dwarf_str_size, struct attr_val *val) { + /* Avoid warnings about val.u.FIELD may be used uninitialized if + this function is inlined. The warnings aren't valid but can + occur because the different fields are set and used + conditionally. */ + memset (val, 0, sizeof *val); + switch (form) { case DW_FORM_addr: