suppress unused variable warnings
authorTianjiao Yin <ytj@fb.com>
Thu, 30 Jun 2016 19:21:28 +0000 (12:21 -0700)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Thu, 30 Jun 2016 19:23:23 +0000 (12:23 -0700)
Reviewed By: yfeldblum

Differential Revision: D3501266

fbshipit-source-id: 2ac3b6e2785792ccc45f4568ceff7fd05f0262f3

folly/test/ConvBenchmark.cpp

index 48d5ea86b2a21d7295d0fc6630822709492db5d3..efff0bf3be39379713214738326d928d5f10d568 100644 (file)
@@ -245,7 +245,7 @@ namespace {
 
 template <typename T>
 void checkArrayIndex(const T& array, size_t index) {
-  assert(index < sizeof(array) / sizeof(array[0]));
+  DCHECK_LT(index, sizeof(array) / sizeof(array[0]));
 }
 }