* dwarf2read.c (read_namespace_type): Remove cast.
authorTom Tromey <tromey@redhat.com>
Wed, 30 Jan 2013 17:19:57 +0000 (17:19 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 30 Jan 2013 17:19:57 +0000 (17:19 +0000)
(read_typedef): Likewise.

gdb/ChangeLog
gdb/dwarf2read.c

index 9b2193bba1be0402e7a34e2e517ad374ef45fb1b..fed5982e605f4b4c5e689c511102399b85408369 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-30  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (read_namespace_type): Remove cast.
+       (read_typedef): Likewise.
+
 2013-01-29  Tom Tromey  <tromey@redhat.com>
 
        * dwarf2read.c (free_dwo_file): Remove assert.
index 23e2dffdda85dd4f5d48baebe24f5f94507e3744..5dfe7181246b475ecefa443d6cea7a43c034ac3f 100644 (file)
@@ -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)