Skip to content

Remove shadowed struct stat declarations from kq_stat_add - #143

Merged
Watson1978 merged 1 commit into
socketry:mainfrom
Watson1978:remove-shadowed-stat-decls
Oct 26, 2026
Merged

Watson1978 merged 1 commit into
socketry:mainfrom
Watson1978:remove-shadowed-stat-decls

Conversation

@Watson1978

Copy link
Copy Markdown
Collaborator

kq_stat_add declares struct stat st at the top of the function since #130, and the two block-local declarations after open() only shadow it. This removes them and reuses the outer variable. With -Wshadow the two warnings for this file go away, and there is no behavior change.

Types of Changes

  • Maintenance.

Contribution

🤖 Generated with Claude Code

kq_stat_add declares st at the top of the function since socketry#130, so the
two block-local declarations after open() only shadow it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Watson1978
Watson1978 merged commit bfdc349 into socketry:main Oct 26, 2026
15 checks passed
@Watson1978
Watson1978 deleted the remove-shadowed-stat-decls branch October 26, 2026 03:03
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.

1 participant