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: apply some scan-build suggestions (unused assignment/garbage access) #3056

Merged
merged 1 commit into from Feb 21, 2024

Conversation

amaanq
Copy link
Member

@amaanq amaanq commented Feb 21, 2024

e.g. found_token is assigned without the prior value being used, last_entry might never be set in the loop if it always evaluates to false, etc

scan-build make is pretty neat, but the potential null pointer deref stuff seemed sane to me at a glance for the most part based on conditions/factors clang can't intelligently know

@amaanq amaanq merged commit 037c71c into tree-sitter:master Feb 21, 2024
13 checks passed
@github-actions github-actions bot removed the request for review from maxbrunsfeld February 21, 2024 20:38
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.

None yet

1 participant