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(cmake): reintroduce -Werror with BUILD_WARNINGS_AS_ERRORS #1615

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

LucaGuerra
Copy link
Contributor

@LucaGuerra LucaGuerra commented Jan 11, 2024

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/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 the BUILD_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?:

NONE

Signed-off-by: Luca Guerra <luca@guerra.sh>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Signed-off-by: Luca Guerra <luca@guerra.sh>
@poiana poiana added size/S and removed size/XS labels Jan 11, 2024
Copy link
Contributor

@incertum incertum left a 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?

@poiana
Copy link
Contributor

poiana commented Jan 11, 2024

LGTM label has been added.

Git tree hash: 115dbbae3019e78e8667bfb496d7e9f80a34a684

Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Jan 12, 2024

[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:
  • OWNERS [FedeDP,LucaGuerra,incertum]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@FedeDP
Copy link
Contributor

FedeDP commented Jan 12, 2024

/milestone 0.14.1

@poiana poiana added this to the 0.14.1 milestone Jan 12, 2024
@poiana poiana merged commit d78fc36 into falcosecurity:master Jan 12, 2024
30 of 31 checks passed
@LucaGuerra LucaGuerra deleted the fix/werror-older-cmake branch January 12, 2024 08:19
@LucaGuerra
Copy link
Contributor Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants