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

Suppress some compiler warnings, fix few possible bugs. #6224

Merged
merged 5 commits into from
Aug 2, 2024

Conversation

buzzhuzz
Copy link
Contributor

Description

Suppress compiler warnings we not going to fix. Fix few obvious errors.

While looking at issue #6137 I found suspicious code:

m_share_extruder(m_share_extruder)

This led me to an idea that no one is looking at warnings produced by compilers.
Currently there are 3056 warnings emitted for OrcaSlicer build using GCC, nearly half of which are unused functions and variables. All that noise distracts developer making them completely ignore compiler output and because of this some obvious mistakes makes into the code base.

@buzzhuzz buzzhuzz changed the title Dbuzz/compiler warnings Suppress some compiler warnings, fix few possible bugs. Jul 23, 2024
@buzzhuzz
Copy link
Contributor Author

Another candidate for suppression is -Wsign-compare which produces 1145 warnings.

buzzhuzz added 4 commits July 31, 2024 15:07
Compilation of OrcaSlicer produces 3056 warnings.
Nearly half of them related to unused functions and variables.

It is unlikely we going to clean them up since we may want to
keep code base as close to the BBS as possible
@buzzhuzz buzzhuzz force-pushed the dbuzz/compiler-warnings branch from 286a34a to 445eba6 Compare July 31, 2024 10:10
Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

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

Nice finding!
LGTM
Thank you!

@SoftFever SoftFever merged commit 143d8c4 into SoftFever:main Aug 2, 2024
15 of 16 checks passed
@buzzhuzz buzzhuzz deleted the dbuzz/compiler-warnings branch August 2, 2024 23:59
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