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 minor things for strict compiler settings #331

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

SeverinDiederichs
Copy link
Collaborator

In the hunt for some ugly non-reproducibility bug, I used strict compiler settings with add_compile_options(-Wall -Wextra -Werror -Wuninitialized)

This PR cleans unused variables and incorrect types that don't have any effect but prevent the usage of strict compiler settings.

@phsft-bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@agheata agheata left a comment

Choose a reason for hiding this comment

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

Good! Maybe we should enable those options by default, to catch problems earlier? I'm OK with adding them in this PR.

@agheata
Copy link
Contributor

agheata commented Jan 10, 2025

And we should add a clang-format test in the CI

@agheata agheata merged commit 3c9c849 into apt-sim:master Jan 10, 2025
2 checks passed
@SeverinDiederichs SeverinDiederichs deleted the some_cleaning branch January 10, 2025 14:42
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.

3 participants