2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
authorSergio Durigan Junior <sergiodj@redhat.com>
Sat, 11 Aug 2012 00:20:18 +0000 (00:20 +0000)
committerSergio Durigan Junior <sergiodj@redhat.com>
Sat, 11 Aug 2012 00:20:18 +0000 (00:20 +0000)
* linespec.c (find_methods): Remove unused variables `i1' and
`name_len'.
(decode_line_full): Likewise for `arg_start'.

gdb/ChangeLog
gdb/linespec.c

index a8f6dfb..81c03ee 100644 (file)
@@ -1,5 +1,11 @@
 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'.
+
+2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
+
        * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
        (zlib_decompress_section): Likewise for `section_data'.
        (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
index 51994c8..86239c9 100644 (file)
@@ -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;