Skip to content

Some OCaml 5 build fixes #5755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

edwintorok
Copy link
Contributor

@edwintorok edwintorok commented Jun 28, 2024

This is still compatible with OCaml 4 too:

  • Printf.ksprintf exists on OCaml 4
  • OCaml 5 is more strict on where inline attributes can be placed, OCaml 4 also accepts the new (correct) placement

There is probably going to be more once I start testing @psafont 's xapi-storage-script changes.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@edwintorok edwintorok force-pushed the private/edvint/deprecated branch from 82fb390 to f226aaa Compare June 28, 2024 17:02
@@ -48,7 +48,7 @@ end
(* === UCS Validators === *)

module type UCS_VALIDATOR = sig
val validate : Uchar.t -> unit [@@inline]
val validate : Uchar.t -> unit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The two modules that seem to be of this type already inline this method

@psafont psafont merged commit 20845fc into xapi-project:master Jul 1, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants