aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2016-01-02 16:52:33 +0100
committerGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2016-01-02 16:52:33 +0100
commit82ac0604888679bc2fbdeda9ac264d7cd10f7928 (patch)
tree49d0a387c5345f17f3b18e82e5a2704e3487b5c7
parent2c8275ee3e0e5cd4eb8afd24047fda7f864e0e4e (diff)
Avoid warnings about loop indices.
-rw-r--r--ide/document.ml2
-rw-r--r--ide/ideutils.ml2
-rw-r--r--kernel/nativelambda.ml2
-rw-r--r--lib/hashset.ml2
4 files changed, 4 insertions, 4 deletions
diff --git a/ide/document.ml b/ide/document.ml
index 9823e7576..41d5a7564 100644
--- a/ide/document.ml
+++ b/ide/document.ml
@@ -154,7 +154,7 @@ let cut_at d id =
if stateid_opt_equal state_id (Some id) then CSig.Stop (n, zone)
else CSig.Cont (n + 1, data :: zone) in
let n, zone = CList.fold_left_until aux (0, []) d.stack in
- for i = 1 to n do ignore(pop d) done;
+ for _i = 1 to n do ignore(pop d) done;
List.rev zone
let find_id d f =
diff --git a/ide/ideutils.ml b/ide/ideutils.ml
index 2e4adba73..ffa07ead7 100644
--- a/ide/ideutils.ml
+++ b/ide/ideutils.ml
@@ -31,7 +31,7 @@ let push_info,pop_info,clear_info =
let size = ref 0 in
(fun s -> incr size; ignore (status_context#push s)),
(fun () -> decr size; status_context#pop ()),
- (fun () -> for i = 1 to !size do status_context#pop () done; size := 0)
+ (fun () -> for _i = 1 to !size do status_context#pop () done; size := 0)
let flash_info =
let flash_context = status#new_context ~name:"Flash" in
diff --git a/kernel/nativelambda.ml b/kernel/nativelambda.ml
index 4d033bc99..3ff9b5702 100644
--- a/kernel/nativelambda.ml
+++ b/kernel/nativelambda.ml
@@ -485,7 +485,7 @@ module Renv =
let pop env = Vect.pop env.name_rel
let popn env n =
- for i = 1 to n do pop env done
+ for _i = 1 to n do pop env done
let get env n =
Lrel (Vect.get_last env.name_rel (n-1), n)
diff --git a/lib/hashset.ml b/lib/hashset.ml
index 1ca6cc641..0009ac650 100644
--- a/lib/hashset.ml
+++ b/lib/hashset.ml
@@ -162,7 +162,7 @@ module Make (E : EqType) =
t.hashes.(index) <- newhashes;
if sz <= t.limit && newsz > t.limit then begin
t.oversize <- t.oversize + 1;
- for i = 0 to over_limit do test_shrink_bucket t done;
+ for _i = 0 to over_limit do test_shrink_bucket t done;
end;
if t.oversize > Array.length t.table / over_limit then resize t
end else if Weak.check bucket i then begin