@@ -179,7 +179,7 @@ let interprete_line ppf line =
179
179
i.instr_action ppf lexbuf;
180
180
resume_user_input () ;
181
181
i.instr_repeat
182
- | l ->
182
+ | _ ->
183
183
error " Ambiguous command."
184
184
end
185
185
| None ->
@@ -216,7 +216,7 @@ let line_loop ppf line_buffer =
216
216
error ("System error: " ^ s) *)
217
217
218
218
(* * Instructions. **)
219
- let instr_cd ppf lexbuf =
219
+ let instr_cd _ppf lexbuf =
220
220
let dir = argument_eol argument lexbuf in
221
221
if ask_kill_program () then
222
222
try
@@ -225,15 +225,15 @@ let instr_cd ppf lexbuf =
225
225
| Sys_error s ->
226
226
error s
227
227
228
- let instr_shell ppf lexbuf =
228
+ let instr_shell _ppf lexbuf =
229
229
let cmdarg = argument_list_eol argument lexbuf in
230
230
let cmd = String. concat " " cmdarg in
231
231
(* perhaps we should use $SHELL -c ? *)
232
232
let err = Sys. command cmd in
233
233
if (err != 0 ) then
234
234
eprintf " Shell command %S failed with exit code %d\n %!" cmd err
235
235
236
- let instr_env ppf lexbuf =
236
+ let instr_env _ppf lexbuf =
237
237
let cmdarg = argument_list_eol argument lexbuf in
238
238
let cmdarg = string_trim (String. concat " " cmdarg) in
239
239
if cmdarg <> " " then
@@ -286,7 +286,7 @@ let instr_dir ppf lexbuf =
286
286
dirs)
287
287
Debugger_config. load_path_for
288
288
289
- let instr_kill ppf lexbuf =
289
+ let instr_kill _ppf lexbuf =
290
290
eol lexbuf;
291
291
if not ! loaded then error " The program is not being run." ;
292
292
if (yes_or_no " Kill the program being debugged" ) then begin
@@ -393,7 +393,7 @@ let print_info_list ppf =
393
393
let pr_infos ppf = List. iter (fun i -> fprintf ppf " %s@ " i.info_name) in
394
394
fprintf ppf " List of info commands: %a@." pr_infos ! info_list
395
395
396
- let instr_complete ppf lexbuf =
396
+ let instr_complete _ppf lexbuf =
397
397
let ppf = Format. err_formatter in
398
398
let rec print_list l =
399
399
try
@@ -465,7 +465,7 @@ let instr_help ppf lexbuf =
465
465
find_variable
466
466
(fun v _ _ ->
467
467
print_help (" show " ^ v.var_name) (" show " ^ v.var_help))
468
- (fun v ->
468
+ (fun _v ->
469
469
print_help " show" " display debugger variable." ;
470
470
print_variable_list ppf)
471
471
ppf
@@ -585,8 +585,8 @@ let instr_source ppf lexbuf =
585
585
586
586
let instr_set =
587
587
find_variable
588
- (fun {var_action = (funct , _ )} ppf lexbuf -> funct lexbuf)
589
- (function ppf -> error " Argument required." )
588
+ (fun {var_action = (funct , _ )} _ppf lexbuf -> funct lexbuf)
589
+ (function _ppf -> error " Argument required." )
590
590
591
591
let instr_show =
592
592
find_variable
@@ -600,8 +600,8 @@ let instr_show =
600
600
601
601
let instr_info =
602
602
find_info
603
- (fun i ppf lexbuf -> i.info_action lexbuf)
604
- (function ppf ->
603
+ (fun i _ppf lexbuf -> i.info_action lexbuf)
604
+ (function _ppf ->
605
605
error " \" info\" must be followed by the name of an info command." )
606
606
607
607
let instr_break ppf lexbuf =
@@ -673,7 +673,7 @@ let instr_break ppf lexbuf =
673
673
| Not_found ->
674
674
eprintf " Can\' t find any event there.@."
675
675
676
- let instr_delete ppf lexbuf =
676
+ let instr_delete _ppf lexbuf =
677
677
match integer_list_eol Lexer. lexeme lexbuf with
678
678
| [] ->
679
679
if breakpoints_count () <> 0 && yes_or_no " Delete all breakpoints"
@@ -771,7 +771,7 @@ let instr_last ppf lexbuf =
771
771
go_to (History. previous_time count);
772
772
show_current_event ppf
773
773
774
- let instr_list ppf lexbuf =
774
+ let instr_list _ppf lexbuf =
775
775
let (mo, beg, e) = list_arguments_eol Lexer. lexeme lexbuf in
776
776
let (curr_mod, line, column) =
777
777
try
@@ -866,9 +866,9 @@ let loading_mode_variable ppf =
866
866
(find_ident
867
867
" loading mode"
868
868
(matching_elements (ref loading_modes) fst)
869
- (fun (_ , mode ) ppf lexbuf ->
869
+ (fun (_ , mode ) _ppf lexbuf ->
870
870
eol lexbuf; set_launching_function mode)
871
- (function ppf -> error " Syntax error." )
871
+ (function _ppf -> error " Syntax error." )
872
872
ppf),
873
873
function ppf ->
874
874
let rec find = function
@@ -946,7 +946,7 @@ let info_breakpoints ppf lexbuf =
946
946
end
947
947
;;
948
948
949
- let info_events ppf lexbuf =
949
+ let info_events _ppf lexbuf =
950
950
ensure_loaded () ;
951
951
let mdle =
952
952
convert_module (module_of_longident (opt_longident_eol Lexer. lexeme lexbuf))
@@ -1210,7 +1210,7 @@ It can be either:\n\
1210
1210
var_action = follow_fork_variable;
1211
1211
var_help =
1212
1212
" process to follow after forking.\n \
1213
- It can be either :
1213
+ It can be either :\n \
1214
1214
child: the newly created process.\n \
1215
1215
parent: the process that called fork.\n " }];
1216
1216
0 commit comments