Skip to content

Commit

Permalink
Fix compiler warning with OCaml 5.2
Browse files Browse the repository at this point in the history
OCaml 5.2 complains:

    Error (warning 53 [misplaced-attribute]): the "deprecated" attribute cannot appear in this context
  • Loading branch information
talex5 committed Jun 14, 2024
1 parent 1d9e14b commit b7d5cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cohttp/src/s.ml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ module type Response = sig
val version : t -> Code.version
val status : t -> Code.status_code

val flush :
(t -> bool[@deprecated "this field will be removed in the future"])
val flush : (t -> bool)
[@@deprecated "this field will be removed in the future"]

val compare : t -> t -> int

Expand Down
8 changes: 4 additions & 4 deletions http/src/http.mli
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ module Response : sig
val status : t -> Status.t

val flush :
(t -> bool
[@deprecated
"this field will be removed in the future. Provide flush in the \
[respond_*] function instead."])
(t -> bool)
[@@deprecated
"this field will be removed in the future. Provide flush in the \
[respond_*] function instead."]

val compare : t -> t -> int

Expand Down

0 comments on commit b7d5cac

Please sign in to comment.