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

Simplify process_block_until_close() #7864

Merged

Conversation

Dave-Lowndes
Copy link
Contributor

In process_block_until_close(), the equality checking was performed in 2 steps and as in all cases NDX was 1, analysers warned that the loop part was ineffective.
To eliminate this warning, and simplify the code, just do a single loop from zero and also exit the loop when it fails the first test (should there ever be a use with NDX > 1).
Also simplify to only have the single call to processSmoothing.

…n 2 steps and as in all cases NDX was 1, analysers warned that the loop part was ineffective.

To eliminate this warning, and simplify the code, just do a single loop from zero and also exit the loop when it fails the first test (should there ever be a use with NDX > 1).
Also simplify to only have the single call to processSmoothing.
@baconpaul baconpaul merged commit d99006e into surge-synthesizer:main Nov 28, 2024
13 checks passed
@Dave-Lowndes Dave-Lowndes deleted the SimplifyToEliminateWarning branch November 28, 2024 23:51
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