Skip to content

Commit 798a742

Browse files
author
Simon Marchi
committed
Remove some unused variables
This patch removes some unused variables, found with -Wunused. I have not removed everything reported by -Wunused, because some expressions such as struct type *arg_type = check_typedef (value_type); in bfin-tdep.c could have an unexpected but important side-effect. I removed others that I considered more low-risk, such as: struct gdbarch *gdbarch = get_objfile_arch (objfile); I tested building with Python 2/Python 3/no Python, with/without expat, with/without libipt and with/without babeltrace. gdb/ChangeLog: * ada-lang.c (ada_collect_symbol_completion_matches): Remove unused variables. (ada_is_redundant_range_encoding): Likewise. * ada-varobj.c (ada_varobj_get_value_of_array_variable): Likewise. * alpha-tdep.c (alpha_software_single_step): Likewise. * arm-tdep.c (_initialize_arm_tdep): Likewise. * auto-load.c (info_auto_load_cmd): Likewise. * break-catch-syscall.c (insert_catch_syscall): Likewise. (remove_catch_syscall): Likewise. * breakpoint.c (condition_completer): Likewise. (clear_command): Likewise. (update_breakpoint_locations): Likewise. * btrace.c (btrace_disable): Likewise. (btrace_teardown): Likewise. (btrace_maint_update_pt_packets): Likewise. (maint_btrace_clear_cmd): Likewise. * cli/cli-decode.c (lookup_cmd_1): Likewise. (lookup_cmd_composition): Likewise. * cli/cli-dump.c (scan_filename): Likewise. (restore_command): Likewise. * compile/compile-loc2c.c (compute_stack_depth): Likewise. * compile/compile-object-load.c (compile_object_load): Likewise. * compile/compile-object-run.c (compile_object_run): Likewise. * compile/compile.c (compile_to_object): Likewise. * completer.c (filename_completer): Likewise. (complete_files_symbols): Likewise. (complete_expression): Likewise. * corelow.c (core_open): Likewise. * ctf.c (ctf_start): Likewise. (ctf_write_status): Likewise. (ctf_write_uploaded_tsv): Likewise. (ctf_write_definition_end): Likewise. (ctf_open_dir): Likewise. (ctf_xfer_partial): Likewise. (ctf_trace_find): Likewise. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Likewise. * dwarf2loc.c (allocate_piece_closure): Likewise. (indirect_pieced_value): Likewise. (dwarf2_evaluate_loc_desc_full): Likewise. * dwarf2read.c (dw2_expand_marked_cus): Likewise. (dw2_expand_symtabs_matching): Likewise. (dw2_map_symbol_filenames): Likewise. (read_and_check_comp_unit_head): Likewise. (read_cutu_die_from_dwo): Likewise. (lookup_dwo_unit): Likewise. (read_comp_units_from_section): Likewise. (dwarf2_compute_name): Likewise. (handle_DW_AT_stmt_list): Likewise. (create_cus_hash_table): Likewise. (create_dwp_v2_section): Likewise. (dwarf2_rnglists_process): Likewise. (dwarf2_ranges_process): Likewise. (dwarf2_record_block_ranges): Likewise. (is_vtable_name): Likewise. (read_formatted_entries): Likewise. (skip_form_bytes): Likewise. * elfread.c (elf_symtab_read): Likewise. * exec.c (exec_file_command): Likewise. * f-valprint.c (f_val_print): Likewise. (info_common_command_for_block): Likewise. * guile/guile.c (initialize_scheme_side): Likewise. * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise. * guile/scm-cmd.c (cmdscm_completer): Likewise. (gdbscm_register_command_x): Likewise. * guile/scm-frame.c (gdbscm_frame_read_var): Likewise. * guile/scm-param.c (gdbscm_parameter_value): Likewise. * guile/scm-ports.c (file_port_magic): Likewise. * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise. (ppscm_pretty_print_one_value): Likewise. (ppscm_print_children): Likewise. * guile/scm-string.c (gdbscm_string_to_argv): Likewise. * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise. * guile/scm-type.c (gdbscm_type_next_field_x): Likewise. * guile/scm-utils.c (gdbscm_parse_function_args): Likewise. * i386-tdep.c (i386_register_reggroup_p): Likewise. * infcmd.c (run_command_1): Likewise. (until_next_fsm_clean_up): Likewise. * linespec.c (linespec_complete): Likewise. (find_label_symbols): Likewise. * m2-valprint.c (m2_val_print): Likewise. * memattr.c (require_user_regions): Likewise. (lookup_mem_region): Likewise. (disable_mem_command): Likewise. (mem_delete): Likewise. * mep-tdep.c (mep_register_name): Likewise. (mep_analyze_prologue): Likewise. * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise. * mi/mi-interp.c (mi_on_sync_execution_done): Likewise. * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise. * minidebug.c (lzma_open): Likewise. * minsyms.c (lookup_minimal_symbol): Likewise. * mips-linux-tdep.c (mips64_fill_fpregset): Likewise. * mips-tdep.c (mips_stub_frame_sniffer): Likewise. (mips_o64_return_value): Likewise. (mips_single_step_through_delay): Likewise. (_initialize_mips_tdep): Likewise. * nios2-tdep.c (nios2_push_dummy_call): Likewise. (nios2_software_single_step): Likewise. * parse.c (find_minsym_type_and_address): Likewise. * psymtab.c (psym_relocate): Likewise. * python/py-breakpoint.c (bppy_get_commands): Likewise. (gdbpy_breakpoint_modified): Likewise. * python/py-infevents.c (create_inferior_call_event_object): Likewise. * python/py-record-btrace.c (btpy_list_item): Likewise. * python/py-type.c (typy_str): Likewise. * python/py-value.c (valpy_call): Likewise. * python/python.c (do_start_initialization): Likewise. * record-btrace.c (record_btrace_insn_history_range): Likewise. (record_btrace_call_history_range): Likewise. (record_btrace_record_method): Likewise. (record_btrace_xfer_partial): Likewise. (btrace_get_frame_function): Likewise. * record-full.c (record_full_open): Likewise. * record.c (get_context_size): Likewise. * registry.h (DEFINE_REGISTRY): Likewise. * remote-fileio.c (remote_fileio_request): Likewise. * remote.c (remote_update_thread_list): Likewise. (remote_check_symbols): Likewise. (remote_commit_resume): Likewise. (remote_interrupt): Likewise. (remote_insert_breakpoint): Likewise. (compare_sections_command): Likewise. * rust-exp.y (super_name): Likewise. (lex_string): Likewise. (convert_ast_to_type): Likewise. (convert_ast_to_expression): Likewise. * rust-lang.c (rust_print_struct_def): Likewise. (rust_print_type): Likewise. (rust_evaluate_subexp): Likewise. * rx-tdep.c (rx_register_type): Likewise. * ser-event.c (serial_event_clear): Likewise. * serial.c (serial_open): Likewise. * spu-tdep.c (spu_overlay_new_objfile): Likewise. * symfile.c (section_is_overlay): Likewise. (overlay_unmapped_address): Likewise. (overlay_mapped_address): Likewise. (simple_overlay_update_1): Likewise. (simple_overlay_update): Likewise. * symtab.c (symbol_find_demangled_name): Likewise. (search_symbols): Likewise. * target-descriptions.c (tdesc_predefined_type): Likewise. * target.c (target_commit_resume): Likewise. * thread.c (print_selected_thread_frame): Likewise. * top.c (new_ui_command): Likewise. (gdb_readline_no_editing): Likewise. * tracefile-tfile.c (tfile_open): Likewise. * tracepoint.c (create_tsv_from_upload): Likewise. * utils.c (quit): Likewise. (defaulted_query): Likewise. * valarith.c (value_concat): Likewise. * xml-syscall.c (xml_list_syscalls_by_group): Likewise. * xml-tdesc.c (target_fetch_description_xml): Likewise. * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. (xtensa_pseudo_register_write): Likewise. gdb/gdbserver/ChangeLog: * regcache.c (registers_to_string): Remove unused variable.
1 parent da02107 commit 798a742

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+179
-224
lines changed

gdb/ChangeLog

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,164 @@
1+
2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2+
3+
* ada-lang.c (ada_collect_symbol_completion_matches): Remove
4+
unused variables.
5+
(ada_is_redundant_range_encoding): Likewise.
6+
* ada-varobj.c (ada_varobj_get_value_of_array_variable):
7+
Likewise.
8+
* alpha-tdep.c (alpha_software_single_step): Likewise.
9+
* arm-tdep.c (_initialize_arm_tdep): Likewise.
10+
* auto-load.c (info_auto_load_cmd): Likewise.
11+
* break-catch-syscall.c (insert_catch_syscall): Likewise.
12+
(remove_catch_syscall): Likewise.
13+
* breakpoint.c (condition_completer): Likewise.
14+
(clear_command): Likewise.
15+
(update_breakpoint_locations): Likewise.
16+
* btrace.c (btrace_disable): Likewise.
17+
(btrace_teardown): Likewise.
18+
(btrace_maint_update_pt_packets): Likewise.
19+
(maint_btrace_clear_cmd): Likewise.
20+
* cli/cli-decode.c (lookup_cmd_1): Likewise.
21+
(lookup_cmd_composition): Likewise.
22+
* cli/cli-dump.c (scan_filename): Likewise.
23+
(restore_command): Likewise.
24+
* compile/compile-loc2c.c (compute_stack_depth): Likewise.
25+
* compile/compile-object-load.c (compile_object_load): Likewise.
26+
* compile/compile-object-run.c (compile_object_run): Likewise.
27+
* compile/compile.c (compile_to_object): Likewise.
28+
* completer.c (filename_completer): Likewise.
29+
(complete_files_symbols): Likewise.
30+
(complete_expression): Likewise.
31+
* corelow.c (core_open): Likewise.
32+
* ctf.c (ctf_start): Likewise.
33+
(ctf_write_status): Likewise.
34+
(ctf_write_uploaded_tsv): Likewise.
35+
(ctf_write_definition_end): Likewise.
36+
(ctf_open_dir): Likewise.
37+
(ctf_xfer_partial): Likewise.
38+
(ctf_trace_find): Likewise.
39+
* disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
40+
Likewise.
41+
* dwarf2loc.c (allocate_piece_closure): Likewise.
42+
(indirect_pieced_value): Likewise.
43+
(dwarf2_evaluate_loc_desc_full): Likewise.
44+
* dwarf2read.c (dw2_expand_marked_cus): Likewise.
45+
(dw2_expand_symtabs_matching): Likewise.
46+
(dw2_map_symbol_filenames): Likewise.
47+
(read_and_check_comp_unit_head): Likewise.
48+
(read_cutu_die_from_dwo): Likewise.
49+
(lookup_dwo_unit): Likewise.
50+
(read_comp_units_from_section): Likewise.
51+
(dwarf2_compute_name): Likewise.
52+
(handle_DW_AT_stmt_list): Likewise.
53+
(create_cus_hash_table): Likewise.
54+
(create_dwp_v2_section): Likewise.
55+
(dwarf2_rnglists_process): Likewise.
56+
(dwarf2_ranges_process): Likewise.
57+
(dwarf2_record_block_ranges): Likewise.
58+
(is_vtable_name): Likewise.
59+
(read_formatted_entries): Likewise.
60+
(skip_form_bytes): Likewise.
61+
* elfread.c (elf_symtab_read): Likewise.
62+
* exec.c (exec_file_command): Likewise.
63+
* f-valprint.c (f_val_print): Likewise.
64+
(info_common_command_for_block): Likewise.
65+
* guile/guile.c (initialize_scheme_side): Likewise.
66+
* guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
67+
* guile/scm-cmd.c (cmdscm_completer): Likewise.
68+
(gdbscm_register_command_x): Likewise.
69+
* guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
70+
* guile/scm-param.c (gdbscm_parameter_value): Likewise.
71+
* guile/scm-ports.c (file_port_magic): Likewise.
72+
* guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
73+
(ppscm_pretty_print_one_value): Likewise.
74+
(ppscm_print_children): Likewise.
75+
* guile/scm-string.c (gdbscm_string_to_argv): Likewise.
76+
* guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
77+
* guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
78+
* guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
79+
* i386-tdep.c (i386_register_reggroup_p): Likewise.
80+
* infcmd.c (run_command_1): Likewise.
81+
(until_next_fsm_clean_up): Likewise.
82+
* linespec.c (linespec_complete): Likewise.
83+
(find_label_symbols): Likewise.
84+
* m2-valprint.c (m2_val_print): Likewise.
85+
* memattr.c (require_user_regions): Likewise.
86+
(lookup_mem_region): Likewise.
87+
(disable_mem_command): Likewise.
88+
(mem_delete): Likewise.
89+
* mep-tdep.c (mep_register_name): Likewise.
90+
(mep_analyze_prologue): Likewise.
91+
* mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
92+
* mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
93+
* mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
94+
* microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
95+
* minidebug.c (lzma_open): Likewise.
96+
* minsyms.c (lookup_minimal_symbol): Likewise.
97+
* mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
98+
* mips-tdep.c (mips_stub_frame_sniffer): Likewise.
99+
(mips_o64_return_value): Likewise.
100+
(mips_single_step_through_delay): Likewise.
101+
(_initialize_mips_tdep): Likewise.
102+
* nios2-tdep.c (nios2_push_dummy_call): Likewise.
103+
(nios2_software_single_step): Likewise.
104+
* parse.c (find_minsym_type_and_address): Likewise.
105+
* psymtab.c (psym_relocate): Likewise.
106+
* python/py-breakpoint.c (bppy_get_commands): Likewise.
107+
(gdbpy_breakpoint_modified): Likewise.
108+
* python/py-infevents.c (create_inferior_call_event_object):
109+
Likewise.
110+
* python/py-record-btrace.c (btpy_list_item): Likewise.
111+
* python/py-type.c (typy_str): Likewise.
112+
* python/py-value.c (valpy_call): Likewise.
113+
* python/python.c (do_start_initialization): Likewise.
114+
* record-btrace.c (record_btrace_insn_history_range): Likewise.
115+
(record_btrace_call_history_range): Likewise.
116+
(record_btrace_record_method): Likewise.
117+
(record_btrace_xfer_partial): Likewise.
118+
(btrace_get_frame_function): Likewise.
119+
* record-full.c (record_full_open): Likewise.
120+
* record.c (get_context_size): Likewise.
121+
* registry.h (DEFINE_REGISTRY): Likewise.
122+
* remote-fileio.c (remote_fileio_request): Likewise.
123+
* remote.c (remote_update_thread_list): Likewise.
124+
(remote_check_symbols): Likewise.
125+
(remote_commit_resume): Likewise.
126+
(remote_interrupt): Likewise.
127+
(remote_insert_breakpoint): Likewise.
128+
(compare_sections_command): Likewise.
129+
* rust-exp.y (super_name): Likewise.
130+
(lex_string): Likewise.
131+
(convert_ast_to_type): Likewise.
132+
(convert_ast_to_expression): Likewise.
133+
* rust-lang.c (rust_print_struct_def): Likewise.
134+
(rust_print_type): Likewise.
135+
(rust_evaluate_subexp): Likewise.
136+
* rx-tdep.c (rx_register_type): Likewise.
137+
* ser-event.c (serial_event_clear): Likewise.
138+
* serial.c (serial_open): Likewise.
139+
* spu-tdep.c (spu_overlay_new_objfile): Likewise.
140+
* symfile.c (section_is_overlay): Likewise.
141+
(overlay_unmapped_address): Likewise.
142+
(overlay_mapped_address): Likewise.
143+
(simple_overlay_update_1): Likewise.
144+
(simple_overlay_update): Likewise.
145+
* symtab.c (symbol_find_demangled_name): Likewise.
146+
(search_symbols): Likewise.
147+
* target-descriptions.c (tdesc_predefined_type): Likewise.
148+
* target.c (target_commit_resume): Likewise.
149+
* thread.c (print_selected_thread_frame): Likewise.
150+
* top.c (new_ui_command): Likewise.
151+
(gdb_readline_no_editing): Likewise.
152+
* tracefile-tfile.c (tfile_open): Likewise.
153+
* tracepoint.c (create_tsv_from_upload): Likewise.
154+
* utils.c (quit): Likewise.
155+
(defaulted_query): Likewise.
156+
* valarith.c (value_concat): Likewise.
157+
* xml-syscall.c (xml_list_syscalls_by_group): Likewise.
158+
* xml-tdesc.c (target_fetch_description_xml): Likewise.
159+
* xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
160+
(xtensa_pseudo_register_write): Likewise.
161+
1162
2017-12-04 Tom Tromey <tom@tromey.com>
2163

3164
* NEWS: Mention Rust trait object inspection.

gdb/ada-lang.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6475,7 +6475,6 @@ ada_collect_symbol_completion_matches (completion_tracker &tracker,
64756475
struct minimal_symbol *msymbol;
64766476
struct objfile *objfile;
64776477
const struct block *b, *surrounding_static_block = 0;
6478-
int i;
64796478
struct block_iterator iter;
64806479
struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
64816480

@@ -8652,7 +8651,6 @@ static int
86528651
ada_is_redundant_range_encoding (struct type *range_type,
86538652
struct type *encoding_type)
86548653
{
8655-
struct type *fixed_range_type;
86568654
const char *bounds_str;
86578655
int n;
86588656
LONGEST lo, hi;

gdb/ada-varobj.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,6 @@ ada_varobj_get_value_of_array_variable (struct value *value,
825825
struct type *type,
826826
struct value_print_options *opts)
827827
{
828-
char *result;
829828
const int numchild = ada_varobj_get_array_number_of_children (value, type);
830829

831830
/* If we have a string, provide its contents in the "value" field.

gdb/alpha-tdep.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,10 +1723,7 @@ alpha_next_pc (struct regcache *regcache, CORE_ADDR pc)
17231723
std::vector<CORE_ADDR>
17241724
alpha_software_single_step (struct regcache *regcache)
17251725
{
1726-
struct gdbarch *gdbarch = regcache->arch ();
1727-
CORE_ADDR pc;
1728-
1729-
pc = alpha_next_pc (regcache, regcache_read_pc (regcache));
1726+
CORE_ADDR pc = alpha_next_pc (regcache, regcache_read_pc (regcache));
17301727

17311728
return {pc};
17321729
}

gdb/arm-tdep.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9546,8 +9546,6 @@ void
95469546
_initialize_arm_tdep (void)
95479547
{
95489548
long length;
9549-
const char *setname;
9550-
const char *setdesc;
95519549
int i, j;
95529550
char regdesc[1024], *rdptr = regdesc;
95539551
size_t rest = sizeof (regdesc);

gdb/auto-load.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,6 @@ static void
15211521
info_auto_load_cmd (const char *args, int from_tty)
15221522
{
15231523
struct cmd_list_element *list;
1524-
struct cleanup *infolist_chain;
15251524
struct ui_out *uiout = current_uiout;
15261525

15271526
ui_out_emit_tuple tuple_emitter (uiout, "infolist");

gdb/break-catch-syscall.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ insert_catch_syscall (struct bp_location *bl)
104104
{
105105
for (int iter : c->syscalls_to_be_caught)
106106
{
107-
int elem;
108-
109107
if (iter >= inf_data->syscalls_counts.size ())
110108
inf_data->syscalls_counts.resize (iter + 1);
111109
++inf_data->syscalls_counts[iter];
@@ -137,7 +135,6 @@ remove_catch_syscall (struct bp_location *bl, enum remove_bp_reason reason)
137135
{
138136
for (int iter : c->syscalls_to_be_caught)
139137
{
140-
int elem;
141138
if (iter >= inf_data->syscalls_counts.size ())
142139
/* Shouldn't happen. */
143140
continue;

gdb/breakpoint.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,6 @@ condition_completer (struct cmd_list_element *cmd,
921921
{
922922
int len;
923923
struct breakpoint *b;
924-
VEC (char_ptr) *result = NULL;
925924

926925
if (text[0] == '$')
927926
{
@@ -11479,7 +11478,6 @@ clear_command (const char *arg, int from_tty)
1147911478
{
1148011479
struct breakpoint *b;
1148111480
int default_match;
11482-
int i;
1148311481

1148411482
std::vector<symtab_and_line> decoded_sals;
1148511483
symtab_and_line last_sal;
@@ -13664,7 +13662,6 @@ update_breakpoint_locations (struct breakpoint *b,
1366413662
gdb::array_view<const symtab_and_line> sals,
1366513663
gdb::array_view<const symtab_and_line> sals_end)
1366613664
{
13667-
int i;
1366813665
struct bp_location *existing_locations;
1366913666

1367013667
if (!sals_end.empty () && (sals.size () != 1 || sals_end.size () != 1))

gdb/btrace.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,6 @@ void
16361636
btrace_disable (struct thread_info *tp)
16371637
{
16381638
struct btrace_thread_info *btp = &tp->btrace;
1639-
int errcode = 0;
16401639

16411640
if (btp->target == NULL)
16421641
return;
@@ -1656,7 +1655,6 @@ void
16561655
btrace_teardown (struct thread_info *tp)
16571656
{
16581657
struct btrace_thread_info *btp = &tp->btrace;
1659-
int errcode = 0;
16601658

16611659
if (btp->target == NULL)
16621660
return;
@@ -3021,7 +3019,6 @@ btrace_maint_decode_pt (struct btrace_maint_info *maint,
30213019
static void
30223020
btrace_maint_update_pt_packets (struct btrace_thread_info *btinfo)
30233021
{
3024-
volatile struct gdb_exception except;
30253022
struct pt_packet_decoder *decoder;
30263023
struct btrace_data_pt *pt;
30273024
struct pt_config config;
@@ -3358,7 +3355,6 @@ maint_btrace_clear_packet_history_cmd (const char *args, int from_tty)
33583355
static void
33593356
maint_btrace_clear_cmd (const char *args, int from_tty)
33603357
{
3361-
struct btrace_thread_info *btinfo;
33623358
struct thread_info *tp;
33633359

33643360
if (args != NULL && *args != 0)

gdb/cli/cli-decode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ lookup_cmd_1 (const char **text, struct cmd_list_element *clist,
13861386
struct cmd_list_element **result_list, int ignore_help_classes)
13871387
{
13881388
char *command;
1389-
int len, tmp, nfound;
1389+
int len, nfound;
13901390
struct cmd_list_element *found, *c;
13911391
const char *line = *text;
13921392

@@ -1715,7 +1715,7 @@ lookup_cmd_composition (const char *text,
17151715
struct cmd_list_element **cmd)
17161716
{
17171717
char *command;
1718-
int len, tmp, nfound;
1718+
int len, nfound;
17191719
struct cmd_list_element *cur_list;
17201720
struct cmd_list_element *prev_cmd;
17211721

0 commit comments

Comments
 (0)