-
-
Notifications
You must be signed in to change notification settings - Fork 730
Make discarded-qualifiers compilation error in meson CI #41313
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
base: develop
Are you sure you want to change the base?
Conversation
|
Documentation preview for this PR (built with commit 43124ed; changes) is ready! 🎉 |
Can you explain this in more detail? Why is https://mesonbuild.com/Adding-arguments.html not working to always upgrade the warning to an error? I think it would be handy to have the local compilation fail iff the CI fails. |
|
there are several things that may differ from user's machine and CI:
unless we stress test all compilers/versions in existence, better be safe. |
You can easily test for compiler features in meson. |
|
but not the other 2 points. |
|
Can you rebase this, because #40980 edit this |
Sure, but couldn't you apply these arguments to every element related to the compilation process? An the inversion of those points is also true: maybe now the meson-ci will complain about a discarded qualifier but there is no way to locally reproduce this using a different compiler. I would say if you add it to meson and all CI is green (on all platforms that we test), then there is a high chance that it will work on other configs as well. But it's not super important and I'll not insist that you have to add the flag in meson instead of in the CI. |
Avoid errors of the form fixed in the dependencies below.
We only do this in the CI instead of modifying meson.build so that if the user's compile somehow doesn't have the flag or is otherwise stricter etc., the compilation does not fail for the user.
📝 Checklist
⌛ Dependencies
#41311
#41314