Skip to content

Enables -Wall and -Werror in CIs #254

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

Merged
merged 11 commits into from
May 20, 2025

Conversation

anarthal
Copy link
Collaborator

Fixes some warnings due to unused variables, signed to unsigned comparisons, and superfluous moves

@anarthal
Copy link
Collaborator Author

I've split this from #250 to make it more self-contained. -Werror here is useful if using Boost lightweight test (included in Boost.Core), which I think we should use here instead of Boost.Test (it's much more lightweight). In lightweight test, tests are just functions that get called from main(). Building with -Werror makes uncalled tests an error.

In any case, it's useful that header-only libraries ship with as few warnings as possible, since they get propagated to user code.

@anarthal
Copy link
Collaborator Author

Merging as requested by Marcelo.

@anarthal anarthal merged commit e8b13bd into boostorg:develop May 20, 2025
16 checks passed
@anarthal anarthal deleted the feature/enable-wall-werror branch May 20, 2025 18:30
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.

1 participant