summaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-30 17:19:57 +0000
committerTom Tromey <tromey@redhat.com>2013-01-30 17:19:57 +0000
commitabee88f21afa3aa46d215217dfd5ee5275f9d041 (patch)
tree4691f08d624b99be486e285b870f73b77eb3d402 /gdb/dwarf2read.c
parente5e04ca3576dd5bd224ae8a18337e756d3376258 (diff)
downloadbinutils-gdb-abee88f21afa3aa46d215217dfd5ee5275f9d041.tar.gz
* dwarf2read.c (read_namespace_type): Remove cast.
(read_typedef): Likewise.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 23e2dffdda8..5dfe7181246 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -12070,7 +12070,7 @@ read_namespace_type (struct die_info *die, struct dwarf2_cu *cu)
/* Create the type. */
type = init_type (TYPE_CODE_NAMESPACE, 0, 0, NULL,
objfile);
- TYPE_NAME (type) = (char *) name;
+ TYPE_NAME (type) = name;
TYPE_TAG_NAME (type) = TYPE_NAME (type);
return set_die_type (die, type, cu);
@@ -12594,7 +12594,7 @@ read_typedef (struct die_info *die, struct dwarf2_cu *cu)
name = dwarf2_full_name (NULL, die, cu);
this_type = init_type (TYPE_CODE_TYPEDEF, 0,
TYPE_FLAG_TARGET_STUB, NULL, objfile);
- TYPE_NAME (this_type) = (char *) name;
+ TYPE_NAME (this_type) = name;
set_die_type (die, this_type, cu);
target_type = die_type (die, cu);
if (target_type != this_type)