This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 4/7] remove unneeded cast in symtab.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Wed, 11 Jun 2014 12:53:14 -0600
- Subject: [PATCH 4/7] remove unneeded cast in symtab.c
- Authentication-results: sourceware.org; auth=none
- References: <1402512797-6082-1-git-send-email-tromey at redhat dot com>
This removes an unneeded const cast from symtab.c:add_macro_name.
2014-06-11 Tom Tromey <tromey@redhat.com>
* symtab.c (add_macro_name): Remove unneeded cast.
---
gdb/ChangeLog | 4 ++++
gdb/symtab.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 2453f2d..3c9e0dd 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -4284,7 +4284,7 @@ add_macro_name (const char *name, const struct macro_definition *ignore,
{
struct add_name_data *datum = (struct add_name_data *) user_data;
- completion_list_add_name ((char *) name,
+ completion_list_add_name (name,
datum->sym_text, datum->sym_text_len,
datum->text, datum->word);
}
--
1.9.3