diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-06 00:08:44 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-06 00:08:44 +0000 |
commit | 8c5630cb0862b06f1ee546a303a8550e424c8bbc (patch) | |
tree | 7e07fc394f59a97ea6951fa0db06602b36dddf75 /gdb | |
parent | d11bdf9018bbb8e1a150fb9254b511cf9cfc4a26 (diff) | |
download | gdb-8c5630cb0862b06f1ee546a303a8550e424c8bbc.zip gdb-8c5630cb0862b06f1ee546a303a8550e424c8bbc.tar.gz gdb-8c5630cb0862b06f1ee546a303a8550e424c8bbc.tar.bz2 |
2010-05-05 Michael Snyder <msnyder@vmware.com>
* c-exp.y (parse_string_or_char): Delete unused variable.
(c_lex): Delete unused variable.
* cp-name-parser.y (cpname_lex): Delete unused variable.
* ada-exp.y (find_primitive_type): Delete unused variable.
(write_var_or_type): Delete unused variable.
* jv-exp.y (java_parse): Delete unused variable.
(push_expression_name): Delete unused variable.
* p-exp.y (pascal_lex): Delete unused variable.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 11 | ||||
-rw-r--r-- | gdb/ada-exp.y | 2 | ||||
-rw-r--r-- | gdb/c-exp.y | 3 | ||||
-rw-r--r-- | gdb/cp-name-parser.y | 2 | ||||
-rw-r--r-- | gdb/jv-exp.y | 2 | ||||
-rw-r--r-- | gdb/p-exp.y | 1 |
6 files changed, 13 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4c32bf..8b7f967 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +2010-05-05 Michael Snyder <msnyder@vmware.com> + + * c-exp.y (parse_string_or_char): Delete unused variable. + (c_lex): Delete unused variable. + * cp-name-parser.y (cpname_lex): Delete unused variable. + * ada-exp.y (find_primitive_type): Delete unused variable. + (write_var_or_type): Delete unused variable. + * jv-exp.y (java_parse): Delete unused variable. + (push_expression_name): Delete unused variable. + * p-exp.y (pascal_lex): Delete unused variable. + 2010-05-05 Pedro Alves <pedro@codesourcery.com> * remote.c (remote_threads_info): Really revert previous previous diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index d47f6a7..722db2f 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -1091,7 +1091,6 @@ find_primitive_type (char *name) { /* Check to see if we have a regular definition of this type that just didn't happen to have been read yet. */ - int ntypes; struct symbol *sym; char *expanded_name = (char *) alloca (strlen (name) + sizeof ("standard__")); @@ -1366,7 +1365,6 @@ write_var_or_type (struct block *block, struct stoken name0) } else if (nsyms == 0) { - int i; struct minimal_symbol *msym = ada_lookup_simple_minsym (encoded_name); if (msym != NULL) diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 2577a99..44fa690 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -1708,7 +1708,7 @@ static int parse_string_or_char (char *tokptr, char **outptr, struct typed_stoken *value, int *host_chars) { - int quote, i; + int quote; enum c_string_type type; /* Build the gdb internal form of the input string in tempbuf. Note @@ -2437,7 +2437,6 @@ static int yylex (void) { token_and_value current; - char *name; int first_was_coloncolon, last_was_coloncolon, first_iter; if (popping && !VEC_empty (token_and_value, token_fifo)) diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y index 81f6a5d..6d7b600 100644 --- a/gdb/cp-name-parser.y +++ b/gdb/cp-name-parser.y @@ -1541,7 +1541,7 @@ yylex (void) { int c; int namelen; - const char *tokstart, *tokptr; + const char *tokstart; retry: prev_lexptr = lexptr; diff --git a/gdb/jv-exp.y b/gdb/jv-exp.y index a904c32..8109e0c 100644 --- a/gdb/jv-exp.y +++ b/gdb/jv-exp.y @@ -547,7 +547,6 @@ CastExpression: write_exp_elt_opcode (UNOP_CAST); } | '(' Expression ')' UnaryExpressionNotPlusMinus { - int exp_size = expout_ptr; int last_exp_size = length_of_subexp(expout, expout_ptr); struct type *type; int i; @@ -1358,7 +1357,6 @@ push_expression_name (struct stoken name) { char *tmp; struct type *typ; - char *ptr; int i; for (i = 0; i < name.length; i++) diff --git a/gdb/p-exp.y b/gdb/p-exp.y index c034fbb..fce3fc7 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -1085,7 +1085,6 @@ yylex () char *tokstart; char *uptokstart; char *tokptr; - char *p; int explen, tempbufindex; static char *tempbuf; static int tempbufsize; |