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:
committed by
Facebook GitHub Bot
parent
d842e7267b
commit
f8ccdde463
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user