From ee542790ba9c08f2db8c94bce75643ee8c67d567 Mon Sep 17 00:00:00 2001 From: Tianjiao Yin Date: Thu, 30 Jun 2016 12:21:28 -0700 Subject: [PATCH] suppress unused variable warnings Reviewed By: yfeldblum Differential Revision: D3501266 fbshipit-source-id: 2ac3b6e2785792ccc45f4568ceff7fd05f0262f3 --- folly/test/ConvBenchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/test/ConvBenchmark.cpp b/folly/test/ConvBenchmark.cpp index 48d5ea86..efff0bf3 100644 --- a/folly/test/ConvBenchmark.cpp +++ b/folly/test/ConvBenchmark.cpp @@ -245,7 +245,7 @@ namespace { template void checkArrayIndex(const T& array, size_t index) { - assert(index < sizeof(array) / sizeof(array[0])); + DCHECK_LT(index, sizeof(array) / sizeof(array[0])); } } -- 2.34.1