aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2007-01-19 16:58:56 +0000
committerherbelin2007-01-19 16:58:56 +0000
commit1a27e5f3ae317477f24893178023b714dbe4cc71 (patch)
tree8d5b2760905070e21119be8a801fe704bef528e3
parent2c4808858e7d0ce7ef8c679eb060b3567b0a96b5 (diff)
Protection contre les warnings 'unused variable' de ocaml 3.09
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9502 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--contrib/funind/rawtermops.ml2
-rw-r--r--kernel/vm.ml1
2 files changed, 1 insertions, 2 deletions
diff --git a/contrib/funind/rawtermops.ml b/contrib/funind/rawtermops.ml
index 6b9a5b5df4..6af8d2c36c 100644
--- a/contrib/funind/rawtermops.ml
+++ b/contrib/funind/rawtermops.ml
@@ -593,7 +593,7 @@ let ids_of_rawterm c =
| RCases (loc,rtntypopt,tml,brchl) ->
List.flatten (List.map (fun (_,idl,patl,c) -> idl @ ids_of_rawterm [] c) brchl)
| RRec _ -> failwith "Fix inside a constructor branch"
- | (RSort _ | RHole _ | RRef _ | REvar _ | RPatVar _ | RDynamic _) as x -> []
+ | (RSort _ | RHole _ | RRef _ | REvar _ | RPatVar _ | RDynamic _) -> []
in
(* build the set *)
List.fold_left (fun acc x -> Idset.add x acc) Idset.empty (ids_of_rawterm [] c)
diff --git a/kernel/vm.ml b/kernel/vm.ml
index 131e8320f4..c1d3ca56fd 100644
--- a/kernel/vm.ml
+++ b/kernel/vm.ml
@@ -476,7 +476,6 @@ let reduce_cofix k vcf =
Array.map (fun c -> interprete c crasy_val (Obj.magic vcf) 0) fc_typ in
(* Construction de l'environnement des corps des cofix *)
- let max = k + ndef - 1 in
let e = Obj.dup (Obj.repr vcf) in
for i = 0 to ndef - 1 do
Obj.set_field e (i+1) (Obj.repr (val_of_rel (k+i)))