From 9d2c7aa0daa8235ac916bbdd7b273b967fc8f133 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Thu, 11 Aug 2016 15:58:04 -0700 Subject: [PATCH] Don't attempt to escape % in SparseByteSetBench Summary: Because it doesn't need to be escaped, and MSVC will warn about invalid escape sequences. If being built with HHVM's settings for MSVC, it's actually an error, as the same warning is produced for multi-byte escape sequences in narrow strings. Reviewed By: yfeldblum Differential Revision: D3704596 fbshipit-source-id: 603e57a35f8b7433d1f6e47f4c2882244536b14f --- folly/test/SparseByteSetBench.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/test/SparseByteSetBench.cpp b/folly/test/SparseByteSetBench.cpp index 83c6edd8..fc1c2793 100644 --- a/folly/test/SparseByteSetBench.cpp +++ b/folly/test/SparseByteSetBench.cpp @@ -127,7 +127,7 @@ void setup_rand_bench() { }); addBenchmark( __FILE__, - sformat("\%bool_array_set_rand_bench({}, {})", + sformat("%bool_array_set_rand_bench({}, {})", size_add, size_contains).c_str(), [=](int iters) { rand_bench(iters, size_add, size_contains); @@ -135,7 +135,7 @@ void setup_rand_bench() { }); addBenchmark( __FILE__, - sformat("\%sparse_byte_set_rand_bench({}, {})", + sformat("%sparse_byte_set_rand_bench({}, {})", size_add, size_contains).c_str(), [=](int iters) { rand_bench(iters, size_add, size_contains); -- 2.34.1