From: Tianjiao Yin Date: Thu, 30 Jun 2016 19:21:28 +0000 (-0700) Subject: suppress unused variable warnings X-Git-Tag: 2016.07.26~105 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ee542790ba9c08f2db8c94bce75643ee8c67d567;p=folly.git suppress unused variable warnings Reviewed By: yfeldblum Differential Revision: D3501266 fbshipit-source-id: 2ac3b6e2785792ccc45f4568ceff7fd05f0262f3 --- 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])); } }