Skip to content

Commit

Permalink
fix namespace issues on macOS (warning: unqualified call to 'std::mov…
Browse files Browse the repository at this point in the history
…e' [-Wunqualified-std-cast-call])

Signed-off-by: kozyilmaz <[email protected]>
  • Loading branch information
kozyilmaz committed May 20, 2024
1 parent 31e510b commit d272993
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions test/cosigner/ecdsa_offline_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ TEST_CASE("cmp_offline_ecdsa") {
for (auto i = players.begin(); i != players.end(); ++i)
{
auto info = std::make_unique<offline_siging_info>(i->first, i->second);
services.emplace(i->first, move(info));
services.emplace(i->first, std::move(info));
}

auto before = Clock::now();
Expand Down Expand Up @@ -543,7 +543,7 @@ TEST_CASE("cmp_offline_ecdsa") {
for (auto i = players.begin(); i != players.end(); ++i)
{
auto info = std::make_unique<key_refresh_info>(i->first, i->second, services.at(i->first)->persistency);
refresh_info.emplace(i->first, move(info));
refresh_info.emplace(i->first, std::move(info));
}
key_refresh(refresh_info, keyid, pubkey);
ecdsa_sign(services, ECDSA_SECP256K1, keyid, 9, 1, pubkey, chaincode, derivation_paths);
Expand All @@ -562,7 +562,7 @@ TEST_CASE("cmp_offline_ecdsa") {
for (auto i = players.begin(); i != players.end(); ++i)
{
auto info = std::make_unique<offline_siging_info>(i->first, i->second);
services.emplace(i->first, move(info));
services.emplace(i->first, std::move(info));
}

const size_t THREAD_COUNT = 8;
Expand Down Expand Up @@ -607,7 +607,7 @@ TEST_CASE("cmp_offline_ecdsa") {
for (auto i = players.begin(); i != players.end(); ++i)
{
auto info = std::make_unique<offline_siging_info>(i->first, i->second);
services.emplace(i->first, move(info));
services.emplace(i->first, std::move(info));
}

ecdsa_preprocess(services, keyid, 0, BLOCK_SIZE, BLOCK_SIZE);
Expand All @@ -625,7 +625,7 @@ TEST_CASE("cmp_offline_ecdsa") {
for (auto i = new_players.begin(); i != new_players.end(); ++i)
{
auto info = std::make_unique<offline_siging_info>(i->first, i->second);
new_services.emplace(i->first, move(info));
new_services.emplace(i->first, std::move(info));
}
ecdsa_preprocess(new_services, new_keyid, 0, BLOCK_SIZE, BLOCK_SIZE);
ecdsa_sign(new_services, ECDSA_SECP256R1, new_keyid, 0, 1, pubkey, chaincode, {path});
Expand All @@ -644,7 +644,7 @@ TEST_CASE("cmp_offline_ecdsa") {
for (auto i = players.begin(); i != players.end(); ++i)
{
auto info = std::make_unique<offline_siging_info>(i->first, i->second);
services.emplace(i->first, move(info));
services.emplace(i->first, std::move(info));
}

ecdsa_preprocess(services, keyid, 0, BLOCK_SIZE, BLOCK_SIZE);
Expand Down
2 changes: 1 addition & 1 deletion test/cosigner/ecdsa_online_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void ecdsa_sign(players_setup_info& players, cosigner_sign_algorithm type
for (auto i = players.begin(); i != players.end(); ++i)
{
auto info = std::make_unique<siging_info>(i->first, i->second, positive_r);
services.emplace(i->first, move(info));
services.emplace(i->first, std::move(info));
players_ids.insert(i->first);
players_str.insert(std::to_string(i->first));
}
Expand Down
2 changes: 1 addition & 1 deletion test/cosigner/eddsa_online_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static void eddsa_sign(players_setup_info& players, const std::string& keyid, ui
for (auto i = players.begin(); i != players.end(); ++i)
{
auto info = std::make_unique<eddsa_siging_info>(i->first, i->second, keccek);
services.emplace(i->first, move(info));
services.emplace(i->first, std::move(info));
players_ids.insert(i->first);
players_str.insert(std::to_string(i->first));
}
Expand Down

0 comments on commit d272993

Please sign in to comment.