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

Improve compiler warning flags #296

Merged
merged 10 commits into from
Jan 22, 2024
Merged

Improve compiler warning flags #296

merged 10 commits into from
Jan 22, 2024

Conversation

quinnmp
Copy link
Contributor

@quinnmp quinnmp commented Jan 12, 2024

Right now, I've made this likely as verbose as we would possibly have it. It throws warnings for
-Wall -Wextra -Wconversion -Wpedantic
See here.

Compile this and let me know which warnings make sense and which to suppress. Then, do we want to -Werror to really enforce these? This would require a lot of code cleanup to make our code compile without errors.

@quinnmp quinnmp marked this pull request as ready for review January 20, 2024 23:03
Copy link
Member

@abhaybd abhaybd left a comment

Choose a reason for hiding this comment

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

Looks good, just a few changes needed

src/CMakeLists.txt Outdated Show resolved Hide resolved
src/network/MissionControlProtocol.cpp Outdated Show resolved Hide resolved
src/CAN/FakeCANBoard.cpp Outdated Show resolved Hide resolved
@quinnmp quinnmp requested a review from abhaybd January 21, 2024 22:36
Copy link
Member

@abhaybd abhaybd left a comment

Choose a reason for hiding this comment

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

Some minor fixes, and then this should be good!

src/CAN/FakeCANBoard.cpp Outdated Show resolved Hide resolved
src/network/MissionControlProtocol.cpp Outdated Show resolved Hide resolved
@quinnmp quinnmp requested a review from abhaybd January 22, 2024 14:45
Copy link
Member

@abhaybd abhaybd left a comment

Choose a reason for hiding this comment

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

Looks good!

@abhaybd abhaybd merged commit 891f57b into master Jan 22, 2024
3 checks passed
@abhaybd abhaybd deleted the warning-flags branch January 22, 2024 21:10
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.

2 participants