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

Remove dead assignments #492

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open

Conversation

partimScurra
Copy link

Removed some minor dead assignments and initializations detected by static analyzer.

@partimScurra partimScurra changed the title Removed dead assignments Remove dead assignments Oct 25, 2024
@notroj
Copy link
Collaborator

notroj commented Dec 10, 2024

Dead assignments are a programming error of some sort, but removing the assignment in a way which preserves behaviour may preserve whatever error was made at the same time as eliminating a warning. For example:

733801c#diff-0b6fc2b9b7368823d9b36f7307ebaab80552c906effb06812f796aa9c25cec73

it is not obvious that removing the first assignment is better than removing the second one. IMO, these should be investigated rather than simply removed. Or, submit fixes for those which are obviously correct.

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