mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpiutil] Upgrade to fmt 9.0.0 (#4337)
fmt removed fmt::make_args_checked since it's no longer needed for constexpr format string checks. fmt deprecated implicit conversions from enums to integers in format arguments, so I added explicit static casts.
This commit is contained in:
@@ -632,7 +632,7 @@ bool DispatcherBase::ClientHandshake(
|
||||
DEBUG0(
|
||||
"client: received message ({}) other than entry assignment during "
|
||||
"initial handshake",
|
||||
msg->type());
|
||||
static_cast<int>(msg->type()));
|
||||
return false;
|
||||
}
|
||||
incoming.emplace_back(std::move(msg));
|
||||
@@ -735,7 +735,7 @@ bool DispatcherBase::ServerHandshake(
|
||||
DEBUG0(
|
||||
"server: received message ({}) other than entry assignment during "
|
||||
"initial handshake",
|
||||
msg->type());
|
||||
static_cast<int>(msg->type()));
|
||||
return false;
|
||||
}
|
||||
incoming.push_back(msg);
|
||||
|
||||
@@ -106,7 +106,8 @@ std::shared_ptr<Message> Message::Read(WireDecoder& decoder,
|
||||
} else {
|
||||
type = get_entry_type(msg->m_id);
|
||||
}
|
||||
WPI_DEBUG4(decoder.logger(), "update message data type: {}", type);
|
||||
WPI_DEBUG4(decoder.logger(), "update message data type: {}",
|
||||
static_cast<int>(type));
|
||||
msg->m_value = decoder.ReadValue(type);
|
||||
if (!msg->m_value) {
|
||||
return nullptr;
|
||||
|
||||
@@ -189,8 +189,9 @@ void NetworkConnection::ReadThreadMain() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
DEBUG3("received type={} with str={} id={} seq_num={}", msg->type(),
|
||||
msg->str(), msg->id(), msg->seq_num_uid());
|
||||
DEBUG3("received type={} with str={} id={} seq_num={}",
|
||||
static_cast<int>(msg->type()), msg->str(), msg->id(),
|
||||
msg->seq_num_uid());
|
||||
m_last_update = Now();
|
||||
m_process_incoming(std::move(msg), this);
|
||||
}
|
||||
@@ -222,8 +223,9 @@ void NetworkConnection::WriteThreadMain() {
|
||||
DEBUG3("sending {} messages", msgs.size());
|
||||
for (auto& msg : msgs) {
|
||||
if (msg) {
|
||||
DEBUG3("sending type={} with str={} id={} seq_num={}", msg->type(),
|
||||
msg->str(), msg->id(), msg->seq_num_uid());
|
||||
DEBUG3("sending type={} with str={} id={} seq_num={}",
|
||||
static_cast<int>(msg->type()), msg->str(), msg->id(),
|
||||
msg->seq_num_uid());
|
||||
msg->Write(encoder);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user