summaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorsergiodj <sergiodj>2012-08-11 00:20:14 +0000
committersergiodj <sergiodj>2012-08-11 00:20:14 +0000
commitc4fa24b5f722e0e6e6c3c5e98d8551da88164c64 (patch)
tree33882bf33c0634589181b0b8a4d40370450946c0 /gdb/linespec.c
parentded47deef0bf6cbeeb56497d6483162b4017c93d (diff)
downloadgdb-c4fa24b5f722e0e6e6c3c5e98d8551da88164c64.tar.gz
2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
* linespec.c (find_methods): Remove unused variables `i1' and `name_len'. (decode_line_full): Likewise for `arg_start'.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 51994c8c6fe..86239c96195 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1063,7 +1063,6 @@ find_methods (struct type *t, const char *name,
VEC (const_char_ptr) **result_names,
VEC (typep) **superclasses)
{
- int i1 = 0;
int ibase;
const char *class_name = type_name_no_tag (t);
@@ -1073,7 +1072,6 @@ find_methods (struct type *t, const char *name,
if (class_name)
{
int method_counter;
- int name_len = strlen (name);
CHECK_TYPEDEF (t);
@@ -2273,7 +2271,6 @@ decode_line_full (char **argptr, int flags,
{
struct symtabs_and_lines result;
struct cleanup *cleanups;
- char *arg_start = *argptr;
VEC (const_char_ptr) *filters = NULL;
linespec_parser parser;
struct linespec_state *state;