This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: remove two casts from dwarf2read.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 30 Jan 2013 10:19:22 -0700
- Subject: FYI: remove two casts from dwarf2read.c
I'm checking this as obvious.
I happened to notice a couple of useless casts in dwarf2read.c.
This removes them.
Tested by rebuilding.
Tom
2013-01-30 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (read_namespace_type): Remove cast.
(read_typedef): Likewise.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.743
diff -u -r1.743 dwarf2read.c
--- dwarf2read.c 29 Jan 2013 19:26:20 -0000 1.743
+++ dwarf2read.c 30 Jan 2013 17:18:53 -0000
@@ -12070,7 +12070,7 @@
/* 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 @@
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)