1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-25 15:43:13 +03:00

migrate from FOLLY_MAYBE_UNUSED to [[maybe_unused]]

Reviewed By: ot, Orvid, xinchenguo

Differential Revision: D54089810

fbshipit-source-id: c88eb520404590c9759e0e29966d1399c26a2244
This commit is contained in:
Yedidya Feldblum
2024-02-28 13:28:26 -08:00
committed by Facebook GitHub Bot
parent d842e7267b
commit f8ccdde463
8 changed files with 36 additions and 36 deletions

View File

@@ -149,7 +149,7 @@ BufQuicBatchResult PacketGroupWriter::writePacketsGroup(
static auto& getThreadLocalConn(size_t maxPackets = 44) {
static thread_local QuicConnectionStateBase fakeConn{QuicNodeType::Server};
static thread_local bool initAccessor FOLLY_MAYBE_UNUSED = [&]() {
static thread_local bool initAccessor [[maybe_unused]] = [&]() {
fakeConn.bufAccessor =
new SimpleBufAccessor{kDefaultMaxUDPPayload * maxPackets};
// Store this so we can use it to set the batch writer.