-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 some warnings and do a couple of other trivial cleanups #2315
Fix some warnings and do a couple of other trivial cleanups #2315
Conversation
nSeed0(nSeed0In), nSeed1(nSeed1In), | ||
addrman(Params().AllowMultiplePorts()) | ||
addrman(Params().AllowMultiplePorts()), | ||
nSeed0(nSeed0In), nSeed1(nSeed1In) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you just re-arranging the order here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's what a warning here was about (smth about "initialized earlier blablabla")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a bit more precise message :)
net.cpp:2256:27: warning: field 'nSeed1' will be initialized after field 'addrman' [-Wreorder]
nSeed0(nSeed0In), nSeed1(nSeed1In),
^
1 warning generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, ok, thaaat's what that message means. 💡
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Included fix for #2320 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-utACK
No description provided.