[PATCH c++ 1/6] dwarf2read.c: Add cast

Pedro Alves palves@redhat.com
Thu Oct 29 17:49:00 GMT 2015


On 10/29/2015 02:57 PM, Simon Marchi wrote:

>> --- a/gdb/dwarf2read.c
>> +++ b/gdb/dwarf2read.c
>> @@ -6854,7 +6854,7 @@ partial_die_full_name (struct partial_die_info *pdi,
>>           struct dwarf2_cu *ref_cu = cu;
>>
>>           /* DW_FORM_ref_addr is using section offset.  */
>> -         attr.name = 0;
>> +         attr.name = (dwarf_attribute) 0;
> 
> Oops, here it should say (enum dwarf_attribute), so it works in C too.

OK with that change.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list