build: Benign changes to remove errors in gcc 12
This commit is contained in:
1 parent
78b82db3e7
commit
ee330fdf6d
3 files changed
+8
-5
No files matched your search
@@ -133,10 +133,10 @@ class ConcurrentSecurityIndex {
|
||||
// support std::move
|
||||
accessor->second = entry.release();
|
||||
return accessor->second;
|
||||
} else {
|
||||
LOG(md, Error, "Found duplicate entry for platform id '{}' - ", key);
|
||||
bts_assert(false);
|
||||
}
|
||||
LOG(md, Error, "Found duplicate entry for platform id '{}' - ", key);
|
||||
bts_assert(false);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
SecurityData *add_security(ExchangeKey key, MDProducerHandle &handle) {
|
||||
|
||||
@@ -93,6 +93,7 @@ std::tuple<string, string> load_session_keys(const string &session) {
|
||||
|
||||
string error = "Failed to find secure logon key for session: " + session;
|
||||
bts_assert_msg(false, error);
|
||||
return {"", ""};
|
||||
}
|
||||
|
||||
LogonData calculate_hmac(
|
||||
@@ -127,6 +128,7 @@ LogonData calculate_hmac(
|
||||
bts_assert_msg(false, e.what());
|
||||
}
|
||||
bts_assert(false);
|
||||
return {};
|
||||
}
|
||||
|
||||
// TEST_CASE("LoadSessionKeys", "") {
|
||||
|
||||
@@ -412,7 +412,8 @@ bts::orderman::OpResult EmMDListener::launch_new_order(
|
||||
me->order_acc_map.insert({ord_key.value(), trading_session});
|
||||
auto bts_sec_key = sec_ptr->handle.security().key;
|
||||
me->order_state_map.insert(
|
||||
{ord_key.value(), {bts_sec_key, order.order_def.order_side}});
|
||||
{static_cast<std::uint64_t>(ord_key.value()),
|
||||
{bts_sec_key, order.order_def.order_side}});
|
||||
LOG(OrderMan, Info,
|
||||
"IEMOrderMuxer::launch_new_order em_ord_key: {} sec_key: {} tid: {} "
|
||||
"sec: {} p: {} "
|
||||
@@ -1210,4 +1211,4 @@ double EmMDListener::_estimate_leg_fill(security_key key, api::Side side) {
|
||||
|
||||
/* #endregion */
|
||||
|
||||
} // namespace bts::md
|
||||
} // namespace bts::md
|
||||
Reference in new issue
Block a user