Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Feb 5, 2025
1 parent cd2d47f commit 21107dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Iter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1031,9 +1031,14 @@ module Map = struct
let of_iter_ seq = fold (fun m (k, v) -> M.add k v m) M.empty seq
let keys m = from_iter (fun k -> M.iter (fun x _ -> k x) m)
let values m = from_iter (fun k -> M.iter (fun _ y -> k y) m)
[@@@ocaml.warning "-32"]
let of_list l = of_iter_ (of_list l)
let to_list x = to_list (to_iter_ x)
[@@@ocaml.warning "+32"]
include M
let to_iter = to_iter_
Expand Down
2 changes: 1 addition & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(public_name iter)
(wrapped false)
(modules Iter IterLabels)
(flags :standard -w +a -warn-error -a+8 -nolabels))
(flags :standard -w +a-4 -warn-error -a+8 -nolabels))

(env
(_
Expand Down

0 comments on commit 21107dc

Please sign in to comment.