Skip to content
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

Add Warnings.Errors argument for < 4.06 compatibility #52

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

hcarty
Copy link
Contributor

@hcarty hcarty commented Dec 4, 2017

Fixes #50 - this seems to be related to the move to a 4.06.0-based AST.

@hcarty hcarty changed the title Update Translation_unit.ml Add missing Warnings.Errors argument Dec 4, 2017
@@ -130,7 +130,7 @@ let parse_print (XUnit xunit) (conf: Conf.t) iname ifile ic ofile =
in
let source = In_channel.with_file ifile ~f:In_channel.input_all in
try parse_print_ 1 source ifile ic with
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you change try to try[@warning "-28"] to suppress the warning when building with 4.06.

It would also be good to reference ocaml-ppx/ocaml-migrate-parsetree#34 so that if/when the type of exceptions is migrated by migrate-parsetree, then we can update and remove the warning suppression.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely - I'll update this PR with the annotation and reference to the omp issue.

@jberdine
Copy link
Collaborator

And thanks! Nice catch.

@hcarty
Copy link
Contributor Author

hcarty commented Dec 18, 2017

@jberdine Updated to suppress warning 28 with a comment pointing to ocaml-ppx/ocaml-migrate-parsetree#34

Thanks for all of the reviews and updates over the weekend!

@jberdine jberdine changed the title Add missing Warnings.Errors argument Add Warnings.Errors argument for < 4.06 compatibility Dec 18, 2017
@jberdine jberdine merged commit 556a1c7 into ocaml-ppx:master Dec 18, 2017
@jberdine
Copy link
Collaborator

Thanks!

@hcarty hcarty deleted the patch-1 branch December 21, 2017 05:22
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