folly: build with -Wunused-parameter
[folly.git] / folly / test / DeterministicSchedule.cpp
index 62a2fbf5eb91badb45b7f184d213a078709f37d3..a08be86baf393945eebb32e605131060031446c6 100644 (file)
@@ -139,7 +139,9 @@ int DeterministicSchedule::getRandNumber(int n) {
   return std::rand() % n;
 }
 
-int DeterministicSchedule::getcpu(unsigned* cpu, unsigned* node, void* unused) {
+int DeterministicSchedule::getcpu(unsigned* cpu,
+                                  unsigned* node,
+                                  void* /* unused */) {
   if (!tls_threadId && tls_sched) {
     beforeSharedAccess();
     tls_threadId = tls_sched->nextThreadId_++;
@@ -364,7 +366,7 @@ AccessSpreaderArray<test::DeterministicAtomic, 128>
 
 template <>
 Getcpu::Func AccessSpreader<test::DeterministicAtomic>::pickGetcpuFunc(
-    size_t numStripes) {
+    size_t /* numStripes */) {
   return &DeterministicSchedule::getcpu;
 }
 }