Index: test/std/thread/futures/futures.async/async.pass.cpp =================================================================== --- test/std/thread/futures/futures.async/async.pass.cpp +++ test/std/thread/futures/futures.async/async.pass.cpp @@ -132,7 +132,7 @@ test(checkVoid, DPID, f2); test(checkVoid, false, std::launch::async, f2); test(checkVoid, true, std::launch::deferred, f2); - test(checkVoid, DPID, std::launch::any, f2); + test(checkVoid, DPID, AnyPolicy, f2); } { using Ret = std::unique_ptr; @@ -143,11 +143,11 @@ { std::future f = std::async(f5, 3); std::this_thread::sleep_for(ms(300)); - try { f.get(); assert (false); } catch ( int ex ) {} + try { f.get(); assert (false); } catch ( int ) {} } { std::future f = std::async(std::launch::deferred, f5, 3); std::this_thread::sleep_for(ms(300)); - try { f.get(); assert (false); } catch ( int ex ) {} + try { f.get(); assert (false); } catch ( int ) {} } }