Skip to content

Commit

Permalink
fix(warn): Remove warnings when building Compat library (OCamlPro#1194)
Browse files Browse the repository at this point in the history
The syntax used for silencing warning in OCamlPro#1191 is incorrect.
  • Loading branch information
bclement-ocp committed Aug 2, 2024
1 parent f55df31 commit de0dce9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib/util/compat.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
(* *)
(**************************************************************************)

[@@@ocaml.warning "-32-33"]

module List = struct
open List

Expand Down Expand Up @@ -56,7 +58,7 @@ module List = struct
aux accu (x :: l_accu) l in
aux accu [] l

include List [@@@ocaml.warning "-32-33"]
include List
end

module Bytes = struct
Expand All @@ -69,7 +71,7 @@ module Bytes = struct
done;
!r

include Bytes [@@@ocaml.warning "-32-33"]
include Bytes
end

module String = struct
Expand All @@ -88,7 +90,7 @@ module String = struct
else aux (i + 1)
in len_s >= len_pre && aux 0

include String [@@@ocaml.warning "-32-33"]
include String
end

module Seq = struct
Expand Down Expand Up @@ -123,5 +125,5 @@ module Seq = struct
| Cons (_, _), Nil ->
false

include Seq [@@@ocaml.warning "-32-33"]
include Seq
end

0 comments on commit de0dce9

Please sign in to comment.