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 some warnings and do a couple of other trivial cleanups #2315

Merged
merged 3 commits into from
Sep 28, 2018

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Sep 22, 2018

No description provided.

@UdjinM6 UdjinM6 added this to the 12.4 milestone Sep 22, 2018
nSeed0(nSeed0In), nSeed1(nSeed1In),
addrman(Params().AllowMultiplePorts())
addrman(Params().AllowMultiplePorts()),
nSeed0(nSeed0In), nSeed1(nSeed1In)
Copy link

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?

Copy link
Author

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")

Copy link
Author

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.

Copy link

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. 💡

nmarley
nmarley previously approved these changes Sep 22, 2018
Copy link

@nmarley nmarley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6
Copy link
Author

UdjinM6 commented Sep 24, 2018

Included fix for #2320

Copy link

@nmarley nmarley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-utACK

@UdjinM6 UdjinM6 merged commit a4ff2a1 into dashpay:develop Sep 28, 2018
@UdjinM6 UdjinM6 deleted the cleanup_warnings_and_trivial branch November 26, 2020 13:25
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