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

show cc compilation wanings #27

Merged
merged 1 commit into from May 11, 2021
Merged

Conversation

Orycterope
Copy link
Contributor

I've just lost a week debugging an optimized undefined behaviour in libyara which was clearly hinted by clang, but the warnings were suppressed in the build.rs.

This PR re-enables all warnings, except for a few harmless warning families to avoid spam during compilation.

I've tried to review all the warnings we get on x86, x64, linux, windows, with both clang and cl, and disable all warning families that are clearly harmless for us. The only one that concerns me is -Wsign-compare, but it also is the more frequent by far, so I've also disabled it.

@Hugal31
Copy link
Owner

Hugal31 commented May 11, 2021

LGTM

I hope your PR on libyara will be merged soon! Do you think we should include a mention of this UB at least in the README? Or maybe add a runtime warning or a quickfix before your PR is merged?

@Orycterope
Copy link
Contributor Author

Thank you. The PR to libyara is already merged, but not yet released.

Regarding the mention to this UB, this PR is precisely here to display the warning when compiling for windows, so we should be fine.

@Hugal31 Hugal31 merged commit c30065b into Hugal31:master May 11, 2021
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

2 participants