[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:
Tyler Veness
2022-08-16 15:35:26 -07:00
committed by GitHub
parent 340465c929
commit 151dabb2af
38 changed files with 3522 additions and 3364 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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);
}
}