Skip to content

Commit 6c99b8c

Browse files
committed
Fix ord unused-type-declaration warning disable pre-OCaml 4.08 (PR #260)
1 parent 3e43c96 commit 6c99b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_plugins/ord/ppx_deriving_ord.cppo.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ let str_of_type ~options ~path ({ ptype_loc = loc } as type_decl) =
194194
conflicts with a Stdlib type from Ppx_deriving_runtime (e.g. bool in test).
195195
In that case we must refer to the type being declared, not the one opened by Ppx_deriving_runtime. *)
196196
let helper_type =
197-
Type.mk ~loc ~attrs:[Ppx_deriving.attr_warning [%expr "-unused-type-declaration"]]
197+
Type.mk ~loc ~attrs:[Ppx_deriving.attr_warning [%expr "-34"]] (* unused-type-declaration *)
198198
~params:type_decl.ptype_params
199199
~manifest:(Ppx_deriving.core_type_of_type_decl type_decl)
200200
(mkloc "t" loc)

0 commit comments

Comments
 (0)