Skip to content

Commit 49c7208

Browse files
committed
fix(build): Fix/disable some warnings
1 parent 9b789c9 commit 49c7208

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
)
88

99
(env
10-
(release (flags -safe-string -w +a-4-42-44-45-48-3-58-32-33)
10+
(release (flags -safe-string -w +a-4-42-44-45-48-3-58-32-33-70)
1111
(ocamlc_flags)
1212
(ocamlopt_flags))
1313
)

src/ppx-metaquot/genlifter.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module Main : sig end = struct
9494
(lam
9595
(Pat.record (List.map fst l) Closed)
9696
(selfcall "record" [str ty; list (List.map snd l)]))
97-
| Type_variant l, _ ->
97+
| Type_variant (l, _rep), _ ->
9898
let case cd =
9999
let c = Ident.name cd.cd_id in
100100
let qc = prefix ^ c in

src/toplevel/learnocaml_toplevel.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ let (>>=) = Lwt.(>>=)
2323

2424
type t = {
2525
timeout_delay: float;
26-
mutable timeout_prompt: t -> unit Lwt.t;
26+
timeout_prompt: t -> unit Lwt.t;
2727
mutable current_timeout_prompt: unit Lwt.t;
2828
flood_limit: int;
29-
mutable flood_prompt: t -> Html_types.nmtoken -> (unit -> int) -> bool Lwt.t;
29+
flood_prompt: t -> Html_types.nmtoken -> (unit -> int) -> bool Lwt.t;
3030
mutable current_flood_prompt: unit Lwt.t;
3131
flood_reset: t -> unit;
3232
worker: Learnocaml_toplevel_worker_caller.t;
3333
container: [ `Div ] Html5.elt;
3434
oldify: bool;
3535
mutable status: [ `Reset of (unit Lwt.t * unit Lwt.u) | `Execute of unit Lwt.t | `Idle ] ;
36-
mutable on_enable_input: t -> unit;
37-
mutable on_disable_input: t -> unit;
36+
on_enable_input: t -> unit;
37+
on_disable_input: t -> unit;
3838
mutable disabled : int;
3939
output: Learnocaml_toplevel_output.output;
4040
input: Learnocaml_toplevel_input.input;
@@ -525,7 +525,7 @@ let create
525525
>>= fun _ -> Lwt.return_unit) ;
526526
let first_time = ref true in
527527
let after_init top =
528-
if !first_time || not oldify then
528+
if !first_time || not top.oldify then
529529
Learnocaml_toplevel_output.clear output
530530
else
531531
Learnocaml_toplevel_output.oldify output;
@@ -536,7 +536,7 @@ let create
536536
| `Idle | `Execute _ -> assert false
537537
end ;
538538
top.status <- `Idle;
539-
begin if display_welcome && (!first_time || not oldify) then
539+
begin if display_welcome && (!first_time || not top.oldify) then
540540
Learnocaml_toplevel_worker_caller.execute
541541
~pp_answer: (fun _ -> ())
542542
~print_outcome: false

src/toplevel/learnocaml_toplevel_history.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* included LICENSE file for details. *)
88

99
type history =
10-
{ mutable storage : string array ;
11-
mutable updated : string array ;
10+
{ storage : string array ;
11+
updated : string array ;
1212
mutable first : int ;
1313
mutable stored : int ;
1414
mutable current : [ `Floating | `Index of int ] ;

src/toplevel/learnocaml_toplevel_worker_caller.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type t = {
5959
mutable after_init: t -> unit Lwt.t;
6060
pp_stdout: string -> unit;
6161
pp_stderr: string -> unit;
62-
}
62+
} [@@ocaml.warning "-69"]
6363

6464

6565
exception Not_equal

0 commit comments

Comments
 (0)