diff options
author | Tom Tromey <tromey@redhat.com> | 2013-03-28 11:09:08 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-18 08:16:57 -0600 |
commit | ac1a991b1c00891d29607a6f97d98d66312af83f (patch) | |
tree | cad007f73396d934f93de088ed3eaf35d19ae388 /gdb | |
parent | 5bc98e5269423c49d5543079c824f551db4028f0 (diff) | |
download | gdb-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/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/symtab.c | 2 |
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); } |