From b59d91e86aacd7e4e3e4553416adcddc0e775d8f Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Tue, 5 Dec 2023 11:58:33 -0800 Subject: [PATCH] Use C++17 [[fallthrough]] in 1 file inc cachelib/allocator/MM2Q-inl.h Reviewed By: jaesoo-fb Differential Revision: D51778168 fbshipit-source-id: 497809a9ca0c88dd95038effbc157b00d1961448 --- cachelib/allocator/MM2Q-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cachelib/allocator/MM2Q-inl.h b/cachelib/allocator/MM2Q-inl.h index ba388d40a4..4f6f47d5f7 100644 --- a/cachelib/allocator/MM2Q-inl.h +++ b/cachelib/allocator/MM2Q-inl.h @@ -335,7 +335,8 @@ bool MM2Q::Container::replace(T& oldNode, T& newNode) noexcept { markHot(newNode); break; case LruType::ColdTail: - markTail(newNode); // pass through to also mark cold + markTail(newNode); + [[fallthrough]]; // pass through to also mark cold case LruType::Cold: markCold(newNode); break;