From: Marcelo Juchem Date: Wed, 26 Feb 2014 23:46:51 +0000 (-0800) Subject: Making folly/Benchmark.cpp clangable X-Git-Tag: v0.22.0~664 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=649cb97d1514634985fa4af370ce30adb79dd032;p=folly.git Making folly/Benchmark.cpp clangable Summary: trunk fails to compile under clang: https://phabricator.fb.com/P6426175 Test Plan: ran some benchmarks and checked output Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D1192933 --- diff --git a/folly/Benchmark.cpp b/folly/Benchmark.cpp index 5de2c0d4..171a0e02 100644 --- a/folly/Benchmark.cpp +++ b/folly/Benchmark.cpp @@ -424,7 +424,7 @@ void runBenchmarks() { get<2>(benchmarks.front()), 0); FOR_EACH_RANGE (i, 1, benchmarks.size()) { double elapsed = 0.0; - if (strcmp(get<1>(benchmarks[i]), "-")) { // skip separators + if (strcmp(get<1>(benchmarks[i]), "-") != 0) { // skip separators if (bmRegex && !boost::regex_search(get<1>(benchmarks[i]), *bmRegex)) { continue; }