diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-29 13:41:12 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-10-29 13:43:01 -0400 |
commit | b40699581c0d390e653f36a5bba99f13cf9763a0 (patch) | |
tree | 007fa2d377ea6c9af9ae08d08806b0ea590744bd | |
parent | 7535d5edeaa5cfa5ba369e8d3ffb47972483394a (diff) | |
download | gdb-b40699581c0d390e653f36a5bba99f13cf9763a0.zip gdb-b40699581c0d390e653f36a5bba99f13cf9763a0.tar.gz gdb-b40699581c0d390e653f36a5bba99f13cf9763a0.tar.bz2 |
dwarf2read.c: Add cast
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.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c22eb46..f5e3e34 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index d43c42e..87dc8b4 100644 --- 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 = (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); |