]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/xml/xml.ml
Most warnings turned into errors and avoided
[helm.git] / matita / components / xml / xml.ml
index 0e3a4bcc24a91fbb447869ce8bdbebe64593e076..c6bbd66b5591bed13ac946b986019ce5d312a414 100644 (file)
@@ -92,7 +92,7 @@ let pp_gen f strm =
       pp_r m s
   | [< >] -> ()
  and print_spaces m =
-  for i = 1 to m do f "  " done
+  for _i = 1 to m do f "  " done
  in
  pp_r 0 strm
 ;;
@@ -104,7 +104,7 @@ let pp_to_outchan strm oc =
 ;;
 
 let pp_to_gzipchan strm oc =
-  pp_gen (fun s -> Gzip.output oc s 0 (String.length s)) strm
+  pp_gen (fun s -> Gzip.output oc (Bytes.of_string s) 0 (String.length s)) strm
 ;;
 
 (** pretty printer to string *)