Commit cfc77602 by Ben Clayton

Vulkan/Debug: Fix build with clang-10.

Fix warning treated as error that loop only iterates once. Bug: b/148401179 Change-Id: I8caf237ede034ba6802a6fbc8167140b27cc13cb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/44548Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com>
parent 197e2514
...@@ -307,13 +307,9 @@ Server::Impl::Impl(const std::shared_ptr<Context> &context, int port) ...@@ -307,13 +307,9 @@ Server::Impl::Impl(const std::shared_ptr<Context> &context, int port)
// Workaround for // Workaround for
// https://github.com/microsoft/VSDebugAdapterHost/issues/11 // https://github.com/microsoft/VSDebugAdapterHost/issues/11
if(clientIsVisualStudio) if(clientIsVisualStudio && !threads.empty())
{ {
for(auto thread : threads) event.threadId = threads.front()->id.value();
{
event.threadId = thread->id.value();
break;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment