From ac1a991b1c00891d29607a6f97d98d66312af83f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 28 Mar 2013 11:09:08 -0600 Subject: [PATCH] remove unneeded cast in symtab.c This removes an unneeded const cast from symtab.c:add_macro_name. 2014-06-18 Tom Tromey * 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/ChangeLog b/gdb/ChangeLog index 3990129f71e..f34f6dcb2ae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-06-18 Tom Tromey + + * symtab.c (add_macro_name): Remove unneeded cast. + 2014-06-18 Tom Tromey * cli/cli-setshow.h (parse_cli_boolean_value): Update. diff --git a/gdb/symtab.c b/gdb/symtab.c index 2453f2d57e1..3c9e0dd0ea2 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); } -- 2.30.2