From 839cace5ff15b56afa3a72c86b379c6abc4c0bf6 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 31 Aug 2014 05:52:21 -0700 Subject: msvc: get UnitTests compiling Choose it from VS or pass /p:RunUnitTests=true to msbuild --- Source/UnitTests/Common/FlagTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/UnitTests/Common/FlagTest.cpp') diff --git a/Source/UnitTests/Common/FlagTest.cpp b/Source/UnitTests/Common/FlagTest.cpp index a3a0c3d929..2c087fd739 100644 --- a/Source/UnitTests/Common/FlagTest.cpp +++ b/Source/UnitTests/Common/FlagTest.cpp @@ -37,7 +37,7 @@ TEST(Flag, MultiThreaded) int count = 0; const int ITERATIONS_COUNT = 100000; - auto setter = [&f]() { + auto setter = [&]() { for (int i = 0; i < ITERATIONS_COUNT; ++i) { while (f.IsSet()); @@ -45,7 +45,7 @@ TEST(Flag, MultiThreaded) } }; - auto clearer = [&f, &count]() { + auto clearer = [&]() { for (int i = 0; i < ITERATIONS_COUNT; ++i) { while (!f.IsSet()); -- cgit v1.2.3