aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-03-28 11:09:08 -0600
committerTom Tromey <tromey@redhat.com>2014-06-18 08:16:57 -0600
commitac1a991b1c00891d29607a6f97d98d66312af83f (patch)
treecad007f73396d934f93de088ed3eaf35d19ae388 /gdb
parent5bc98e5269423c49d5543079c824f551db4028f0 (diff)
downloadgdb-ac1a991b1c00891d29607a6f97d98d66312af83f.zip
gdb-ac1a991b1c00891d29607a6f97d98d66312af83f.tar.gz
gdb-ac1a991b1c00891d29607a6f97d98d66312af83f.tar.bz2
remove unneeded cast in symtab.c
This removes an unneeded const cast from symtab.c:add_macro_name. 2014-06-18 Tom Tromey <tromey@redhat.com> * symtab.c (add_macro_name): Remove unneeded cast.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/symtab.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3990129..f34f6dc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2014-06-18 Tom Tromey <tromey@redhat.com>
+ * symtab.c (add_macro_name): Remove unneeded cast.
+
+2014-06-18 Tom Tromey <tromey@redhat.com>
+
* cli/cli-setshow.h (parse_cli_boolean_value): Update.
* cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
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);
}