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

Use werror for gnome.generate_gir(fatal_warnings:) #13464

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tristan957
Copy link
Contributor

In addition to the kwarg, Meson will now read werror to determine whether to turn on this warning.

In addition to the kwarg, Meson will now read werror to determine
whether to turn on this warning.
@tristan957
Copy link
Contributor Author

tristan957 commented Jul 22, 2024

cc @ebassi. Saw your introspection talk, so thought I would help you out. Does the boolean logic match what you expect to happen with backward compatibility in mind?

@ebassi
Copy link
Contributor

ebassi commented Jul 24, 2024

Yes, this is what I had in mind. There's still the question as to whether we want fatal_warnings to override werror, i.e. the case where you pass --werror but fatal_warnings: false should take precedence. I don't have a strong opinion on that regard.

@tristan957
Copy link
Contributor Author

Cool. Thanks for your feedback.

@eli-schwartz
Copy link
Member

I agree, that fatal_warnings should be updated to track either boolean values from meson.build or default=None as a sentinel for "no value passed in meson.build", so that it can check the global "werror" option only when fatal_warnings is None.

@tristan957
Copy link
Contributor Author

Eli, would changing the default not be a breaking change?

@eli-schwartz
Copy link
Member

The default is werror=false and fatal_warnings: false, so after this PR is implemented, users would still not have fatal warnings unless they somehow opted into it.

Not sure what you mean by that.

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.

None yet

3 participants