From 755ecb821bf41b310cda92eb651bc600ec24834e Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Mon, 25 Jul 2011 10:47:22 -0700 Subject: [PATCH] cli: Compile fixes for gcc 4.6 Original patch by: Jose Manuel dos Santos Calhariz Signed-off-by: Ben Greear --- xorp/cli/cli_client.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/xorp/cli/cli_client.cc b/xorp/cli/cli_client.cc index a844936eb..d9aea1f4a 100644 --- a/xorp/cli/cli_client.cc +++ b/xorp/cli/cli_client.cc @@ -1349,7 +1349,6 @@ CliClient::process_command(const string& command_line) CliCommand *parent_cli_command = current_cli_command(); CliCommand *child_cli_command = NULL; int syntax_error_offset_next = current_cli_prompt().size(); - int syntax_error_offset_prev = syntax_error_offset_next; int i, old_len, new_len; vector command_global_name; bool found_type_match_cb = false; @@ -1369,7 +1368,6 @@ CliClient::process_command(const string& command_line) child_cli_command = parent_cli_command->command_find(token); new_len = token_line.size(); - syntax_error_offset_prev = syntax_error_offset_next; syntax_error_offset_next += old_len - new_len; old_len = new_len;