Skip to content

Commit

Permalink
Remove warning on OCaml 4.12
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Nov 13, 2020
1 parent a059aad commit eb6c98f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/lwt_unix.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,11 @@ let choose_async_method = function
| Some am -> am
| None -> !default_async_method_var

[@@@ocaml.warning "-16"]
let execute_job ?async_method ~job ~result ~free =
let async_method = choose_async_method async_method in
run_job_aux async_method job (fun job -> let x = wrap_result result job in free job; x)
[@@@ocaml.warning "+16"]

external self_result : 'a job -> 'a = "lwt_unix_self_result"
(* returns the result of a job using the [result] field of the C
Expand Down

0 comments on commit eb6c98f

Please sign in to comment.