aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-script.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-05 21:32:56 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-05 21:32:56 +0000
commitd36fc00bca2fb29ea34f8879ea68e0aee3b26d7d (patch)
tree446ae703db650502ff9442c71a2a44fb5f4ef5d0 /gdb/cli/cli-script.c
parent9128a5038636399af323891c0ab2d3931f24e33f (diff)
downloadgdb-d36fc00bca2fb29ea34f8879ea68e0aee3b26d7d.zip
gdb-d36fc00bca2fb29ea34f8879ea68e0aee3b26d7d.tar.gz
gdb-d36fc00bca2fb29ea34f8879ea68e0aee3b26d7d.tar.bz2
2010-05-05 Michael Snyder <msnyder@vmware.com>
* cli-dump.c (dump_memory_to_file): Delete unused variable. (restore_binary_file): Delete unused variable. * cli-decode.c (deprecated_cmd_warning): Delete unused variables. * cli-script.c (define_command): Delete unused variables. (recurse_read_control_structure): Delete unused variable. (script_from_file): Delete unused variable. * cli-cmds.c (complete_command): Delete unused variable. (disassemble_command): Delete unused variable.
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r--gdb/cli/cli-script.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 198966f..95dc567 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1047,7 +1047,6 @@ recurse_read_control_structure (char * (*read_next_line_func) (void),
enum misc_command_type val;
enum command_control_type ret;
struct command_line **body_ptr, *child_tail, *next;
- char *p;
child_tail = NULL;
current_body = 1;
@@ -1408,8 +1407,8 @@ define_command (char *comname, int from_tty)
CMD_POST_HOOK
};
struct command_line *cmds;
- struct cmd_list_element *c, *newc, *oldc, *hookc = 0, **list;
- char *tem, *tem2, *comfull;
+ struct cmd_list_element *c, *newc, *hookc = 0, **list;
+ char *tem, *comfull;
char tmpbuf[MAX_TMPBUF];
int hook_type = CMD_NO_HOOK;
int hook_name_size = 0;
@@ -1588,7 +1587,6 @@ script_from_file (FILE *stream, const char *file)
{
struct cleanup *old_cleanups;
struct source_cleanup_lines_args old_lines;
- int needed_length;
if (stream == NULL)
internal_error (__FILE__, __LINE__, _("called with NULL file pointer!"));