diff --git a/folly/experimental/channels/test/ChannelTestUtil.h b/folly/experimental/channels/test/ChannelTestUtil.h index 6cd4f8ef199..6b22a006e22 100644 --- a/folly/experimental/channels/test/ChannelTestUtil.h +++ b/folly/experimental/channels/test/ChannelTestUtil.h @@ -30,18 +30,16 @@ template std::vector toVector(T firstItem, Others... items) { std::vector itemsVector; itemsVector.push_back(std::move(firstItem)); - [[maybe_unused]] int dummy[] = { - (itemsVector.push_back(std::move(items)), 0)...}; + (void(itemsVector.push_back(std::move(items))), ...); return itemsVector; } -template -folly::F14FastMap -toMap(TPair firstPair, Others... items) { - folly::F14FastMap - itemsMap; +template +folly::F14FastMap, Mapped> toMap( + std::pair firstPair, Others... items) { + folly::F14FastMap, Mapped> itemsMap; itemsMap.insert(std::move(firstPair)); - [[maybe_unused]] int dummy[] = {(itemsMap.insert(std::move(items)), 0)...}; + (void(itemsMap.insert(std::move(items))), ...); return itemsMap; }