-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Warning fixes #5865
Warning fixes #5865
Conversation
@@ -4383,7 +4383,7 @@ boost::optional<epee::wipeable_string> simple_wallet::new_wallet(const boost::pr | |||
} | |||
success_msg_writer() << "**********************************************************************"; | |||
|
|||
return std::move(password); | |||
return password; |
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.
These should've been return {std::move(password)};
, although a quick disassembly shows the the compiler treats it the same.
@@ -627,9 +627,10 @@ void Blockchain::pop_blocks(uint64_t nblocks) | |||
const uint64_t blockchain_height = m_db->height(); | |||
if (blockchain_height > 0) | |||
nblocks = std::min(nblocks, blockchain_height - 1); | |||
for (i=0; i < nblocks; ++i) | |||
while (i < nblocks) |
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.
Didn't like for ( ; i < nblocks; ++i)
?
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.
I do not think I tried that.
GCC 9.1 fixes /monero#5613+monero-project#5865
No description provided.