-
Notifications
You must be signed in to change notification settings - Fork 165
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(cmake): reintroduce -Werror with BUILD_WARNINGS_AS_ERRORS #1615
fix(cmake): reintroduce -Werror with BUILD_WARNINGS_AS_ERRORS #1615
Conversation
Signed-off-by: Luca Guerra <luca@guerra.sh>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Signed-off-by: Luca Guerra <luca@guerra.sh>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
I like this cleanup. What milestone?
LGTM label has been added. Git tree hash: 115dbbae3019e78e8667bfb496d7e9f80a34a684
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, incertum, LucaGuerra The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/milestone 0.14.1 |
Yes thanks for agreeing with 0.14.1, by including it there we have warnings as errors in CI for the changes we publish to the release branch so it's beneficial I think! |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area build
Does this PR require a change in the driver versions?
No
What this PR does / why we need it:
This PR adds
-Werror
to make theBUILD_WARNINGS_AS_ERRORS
options work again. As you can see, we now attempt to enable that via CMAKE_COMPILE_WARNING_AS_ERROR but that option requires CMake 3.24 and we use 3.13 in CI.Also, fix resulting warnings.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: