aboutsummaryrefslogtreecommitdiff
path: root/gdb/macroexp.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-06 19:41:12 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-06 19:41:12 +0000
commit308d96edc1e82c7bb9440d20b868ee9dd93959ea (patch)
tree2a8625181c18ed97c984a83b9e200e6856e840f3 /gdb/macroexp.c
parent167e43849e8c76e720617fbb17897861ee1f2be0 (diff)
downloadfsf-binutils-gdb-308d96edc1e82c7bb9440d20b868ee9dd93959ea.zip
fsf-binutils-gdb-308d96edc1e82c7bb9440d20b868ee9dd93959ea.tar.gz
fsf-binutils-gdb-308d96edc1e82c7bb9440d20b868ee9dd93959ea.tar.bz2
2010-05-06 Michael Snyder <msnyder@vmware.com>
* macrocmd.c (_initialize_macrocmd): Delete unused variable. * macroexp.c (gather_arguments): Delete unused variable. (substitute_args): Delete unused variable. * completer.c (gdb_completer_loc_break_characters): Unused, delete. * gdbarch.sh (gdbarch_printable_names): Delete unused variable. (_initialize_gdbarch): Delete unused variable. * gdbarch.c, gdbarch.h: Regenerate. * arch-utils.c (initialize_current_architecture): Delete unused variable. (_initialize_gdbarch_utils): Delete unused variable. * gdbtypes.c (make_cv_type): Delete unused variable. (make_type_with_address_space): Delete unused variable.
Diffstat (limited to 'gdb/macroexp.c')
-rw-r--r--gdb/macroexp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/macroexp.c b/gdb/macroexp.c
index 050fbbf..0bd65f6 100644
--- a/gdb/macroexp.c
+++ b/gdb/macroexp.c
@@ -805,8 +805,6 @@ gather_arguments (const char *name, struct macro_buffer *src,
depth = 0;
for (;;)
{
- char *start = src->text;
-
if (! get_token (&tok, src))
error (_("Malformed argument list for macro `%s'."), name);
@@ -1004,7 +1002,7 @@ substitute_args (struct macro_buffer *dest,
&& lookahead.text[0] == '#'
&& lookahead.text[1] == '#')
{
- int arg, finished = 0;
+ int finished = 0;
int prev_was_comma = 0;
/* Note that GCC warns if the result of splicing is not a