dwarf2read.c: Add cast
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 29 Oct 2015 17:41:12 +0000 (13:41 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 29 Oct 2015 17:43:01 +0000 (13:43 -0400)
There is no enum value representing 0.  It seems like the value of the
name field is irrelevant here.

gdb/ChangeLog:

* dwarf2read.c (partial_die_full_name): Add cast.

gdb/ChangeLog
gdb/dwarf2read.c

index c22eb46c457f69ad4cc1535194e8be7462fa0aff..f5e3e34ef2728e5e0f031bd90eaa9d1285de574c 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2read.c (partial_die_full_name): Add cast.
+
 2015-10-29  Pedro Alves  <palves@redhat.com>
 
        * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
index d43c42ed5832bcfcb47296fad452705b0c207d5f..87dc8b488650e9477417c90f2da51e91ca9054d4 100644 (file)
@@ -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 = (enum dwarf_attribute) 0;
          attr.form = DW_FORM_ref_addr;
          attr.u.unsnd = pdi->offset.sect_off;
          die = follow_die_ref (NULL, &attr, &ref_cu);