Commit 259d9a88 authored by Igor Sugak's avatar Igor Sugak Committed by facebook-github-bot-1

folly: fix -Wunused-parameter in opt mode

Summary: Fix a few remaining unused parameters, that are exposed only in opt build.

Reviewed By: markisaa

Differential Revision: D2878865

fb-gh-sync-id: d0d9761362220973cda14d99ab7342fbe8b1a469
parent 225af552
......@@ -161,12 +161,15 @@ template <class In, class... Stages> class MPMCPipeline {
#endif
remainingUses_(amplification),
value_(value * amplification) {
(void)owner; // -Wunused-parameter
}
uint64_t use(MPMCPipeline* owner) {
CHECK_GT(remainingUses_--, 0);
#ifndef NDEBUG
CHECK(owner == owner_);
#else
(void)owner; // -Wunused-parameter
#endif
return value_++;
}
......
......@@ -591,7 +591,7 @@ template <class String> void clause11_21_4_7_1(String & test) {
// exercise get_allocator()
String s;
randomString(&s, maxString);
assert(test.get_allocator() == s.get_allocator());
DCHECK(test.get_allocator() == s.get_allocator());
}
template <class String> void clause11_21_4_7_2_a(String & test) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment