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 GCC warning: unused variables #395

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

plexoos
Copy link
Member

@plexoos plexoos commented Sep 13, 2022

Getting rid of such warnings as

  • variable set but not used [-Wunused-but-set-variable]
  • unused variable [-Wunused-variable]
  • unused parameter [-Wunused-parameter]
  • etc.

See #392 for motivation

@plexoos plexoos added the help wanted Extra attention is needed label Sep 13, 2022
@plexoos plexoos added this to the SL22d milestone Sep 13, 2022
@genevb
Copy link
Contributor

genevb commented Nov 8, 2022

What's the criteria for commenting out lines vs. deleting them?

@plexoos
Copy link
Member Author

plexoos commented Nov 8, 2022

What's the criteria for commenting out lines vs. deleting them?

When I see that a variable is "used" in some other already commented lines then I rather comment it out as well, otherwise remove.

@plexoos plexoos force-pushed the pr/fix_unused branch 2 times, most recently from dba2a5a to f0d560d Compare November 8, 2022 23:38
@plexoos
Copy link
Member Author

plexoos commented Nov 11, 2022

Progress so far. This PR vs SL22 branch

By warning:
fix_warns_warn

By package (40 with highest count selected, RTS and Jevp are simply disabled):
fix_warns_path

@plexoos plexoos modified the milestones: SL22d, SL23a, SL23b Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants