From: Jim Meyering Date: Thu, 3 Nov 2016 02:02:20 +0000 (-0700) Subject: folly/test/RangeFindBenchmark.cpp: avoid shadowing warning: rename inner "n": s/... X-Git-Tag: v2016.11.07.00~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ca4107747f66a294864eed84578bcc32c2f9762;p=folly.git folly/test/RangeFindBenchmark.cpp: avoid shadowing warning: rename inner "n": s/\/c/ Reviewed By: yfeldblum Differential Revision: D4120553 fbshipit-source-id: 87c202232bcfabeff7eb62a8133b9b5577b09cbc --- diff --git a/folly/test/RangeFindBenchmark.cpp b/folly/test/RangeFindBenchmark.cpp index a6423c97..ba332e61 100644 --- a/folly/test/RangeFindBenchmark.cpp +++ b/folly/test/RangeFindBenchmark.cpp @@ -139,13 +139,13 @@ template void countHits(Func func, size_t n) { StringPiece needles = "\r\n\1"; FOR_EACH_RANGE (i, 0, n) { - size_t p, n = 0; + size_t p, c = 0; for (StringPiece left = file; (p = func(left, needles)) != StringPiece::npos; left.advance(p + 1)) { - ++n; + ++c; } - doNotOptimizeAway(n); + doNotOptimizeAway(c); } }