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

Fix most warnings (especially in 8.13) #18

Merged
merged 3 commits into from
Jan 5, 2021
Merged

Fix most warnings (especially in 8.13) #18

merged 3 commits into from
Jan 5, 2021

Conversation

palmskog
Copy link
Member

@palmskog palmskog commented Jan 5, 2021

I used Pierre-Marie Pédrot's script to add explicit locality to hints (otherwise, there is a warning in 8.13). I also fix or ignore some other warnings that are standard. This lessens the noise generated in CI considerably.

@palmskog palmskog requested a review from Zimmi48 January 5, 2021 12:51
@Casteran
Copy link
Member

Casteran commented Jan 5, 2021 via email

@palmskog
Copy link
Member Author

palmskog commented Jan 5, 2021

@Casteran indeed this seems like a very nitpicky warning, and it was only introduced in 8.13. Perhaps we should simply suppress/ignore it? This is quite simple to do by editing _CoqProject/dune. Personally, I also prefer using x or similar rather than _ in these situations.

Perhaps @Zimmi48 knows why this warning was introduced.

@Zimmi48
Copy link
Member

Zimmi48 commented Jan 5, 2021

See coq/coq#12762 for the rationale. Feel free to ignore this warning if you do not find it useful. Maybe the warning message should explain why it is considered a bad practice though.

@palmskog
Copy link
Member Author

palmskog commented Jan 5, 2021

@Casteran what do you think of the rationale in coq/coq#12762? I'm fine with either suppressing the warning or changing the code to use underscores.

@Casteran
Copy link
Member

Casteran commented Jan 5, 2021 via email

@palmskog
Copy link
Member Author

palmskog commented Jan 5, 2021

OK, since the variable name change is orthogonal to this PR, I will then take the liberty to merge. The only remaining warnings were those related to the Coq issue.

@palmskog palmskog merged commit 7c8a6fb into master Jan 5, 2021
@palmskog palmskog deleted the fix-warnings branch January 5, 2021 16:58
@Casteran
Copy link
Member

Casteran commented Jan 5, 2021 via email

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