Skip to content

Commit

Permalink
Clarify comments around Lwt_sequence aliases
Browse files Browse the repository at this point in the history
Fixes #504.
  • Loading branch information
aantron committed Dec 3, 2017
1 parent a59ed6e commit 35df29e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/unix/lwt_daemon.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
* 02111-1307, USA.
*)

(* [Lwt_sequence] is deprecated to prevent users from using it, but it is used
internally by Lwt. *)
(* [Lwt_sequence] is deprecated – we don't want users outside Lwt using it.
However, it is still used internally by Lwt. So, briefly disable warning 3
("deprecated"), and create a local, non-deprecated alias for
[Lwt_sequence] that can be referred to by the rest of the code in this
module without triggering any more warnings. *)
[@@@ocaml.warning "-3"]
module Lwt_sequence = Lwt_sequence
[@@@ocaml.warning "+3"]
Expand Down

0 comments on commit 35df29e

Please sign in to comment.