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

[c++] remove unused variable 'need_connect_cnt' #6410

Merged
merged 5 commits into from
Apr 19, 2024
Merged

Conversation

jameslamb
Copy link
Collaborator

clang++ complains about this variable in linkers_socket.cpp being unused.

.../src/network/linkers_socket.cpp:174:7: warning: variable 'need_connect_cnt' set but not used [-Wunused-but-set-variable]
  int need_connect_cnt = 0;

That looks correct to me, based on the output of this:

git grep need_connect_cnt

Seems that that variable is being incremented but not used for anything. I suspect that's left over from some previous refactoring.

This proposes removing that unused variable.

@jameslamb jameslamb merged commit 4466349 into master Apr 19, 2024
42 checks passed
@jameslamb jameslamb deleted the remove-unused branch April 19, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants