Skip to content

Commit

Permalink
Merge pull request #258 from ejgallego/v8.13+fix_412_warn
Browse files Browse the repository at this point in the history
[build] Remove 4.12 warnings, test 4.12 in the CI
  • Loading branch information
ejgallego authored Sep 22, 2021
2 parents f5c7ff6 + b7eb4b4 commit 2f557aa
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
build:
strategy:
matrix:
ocaml-version: [4.07.1, 4.08.1, 4.09.1, 4.10.1, 4.11.1]
ocaml-version: [4.07.1, 4.08.1, 4.09.1, 4.10.1, 4.11.1, 4.12.0]
test-target: [test]
extra-opam: ["coq.8.13.0 coq-mathcomp-ssreflect"]
include:
Expand Down
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@ejgallego, reported by @cpitclaudel)
- [sertop] New option `--omit_env` that will disable the serialization of
Coq's super heavy global environments (#254 @ejgallego)
- [build] Test OCaml 4.12 (#257 @ejgallego)

## Version 0.13.0:

Expand Down
2 changes: 1 addition & 1 deletion serapi/serapi_doc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let check_pending_proofs ~pstate =
CErrors.user_err msg
) pstate

let save_vo ~doc ?ldir ~pstate ~in_file =
let save_vo ~doc ?ldir ~pstate ~in_file () =
let _doc = Stm.join ~doc in
check_pending_proofs ~pstate;
let ldir = match ldir with
Expand Down
1 change: 1 addition & 0 deletions serapi/serapi_doc.mli
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ val save_vo
-> pstate:Declare.Proof.t option
-> in_file:string
-> unit
-> unit
2 changes: 1 addition & 1 deletion serapi/serapi_protocol.ml
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ let exec_cmd (st : State.t) (cmd : cmd) : answer_kind list * State.t =
let _doc = Stm.observe ~doc opts.sid in
let pst = Stm.state_of_id ~doc opts.sid in
let pstate = pstate_of_st pst in
Serapi_doc.save_vo ~doc ~pstate ~in_file ?ldir:st.ldir; []
Serapi_doc.save_vo ~doc ~pstate ~in_file ?ldir:st.ldir (); []
end
| Add (opt, s) ->
let _doc, pa, res = ControlUtil.add_sentences ~doc opt s in
Expand Down
4 changes: 2 additions & 2 deletions sertop/sertop_sexp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module Ctx = struct
; st : SP.State.t
}

let make ?in_file ?ldir ~cmd_id ~in_chan ~out_chan =
let make ?in_file ?ldir ~cmd_id ~in_chan ~out_chan () =
let out_fmt = Format.formatter_of_out_channel out_chan in
let st = SP.State.make ?in_file ?ldir () in
{ out_chan; out_fmt; in_chan; cmd_id; st }
Expand Down Expand Up @@ -207,7 +207,7 @@ let ser_loop ser_opts =

let ldir = Option.map Serapi.Serapi_paths.dirpath_of_file ser_opts.topfile in
let ctx = Ctx.make
?in_file:ser_opts.topfile ?ldir ~cmd_id:0 ~in_chan:ser_opts.in_chan ~out_chan:ser_opts.out_chan in
?in_file:ser_opts.topfile ?ldir ~cmd_id:0 ~in_chan:ser_opts.in_chan ~out_chan:ser_opts.out_chan () in

(* Init Coq *)
let () = Sertop_init.(
Expand Down

0 comments on commit 2f557aa

Please sign in to comment.