From 649cb97d1514634985fa4af370ce30adb79dd032 Mon Sep 17 00:00:00 2001 From: Marcelo Juchem Date: Wed, 26 Feb 2014 15:46:51 -0800 Subject: [PATCH] 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 --- folly/Benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1