Resolve warnings from gcc.

Resolves #505
This commit is contained in:
Andreas Süßenbach
2020-02-11 15:39:46 +01:00
committed by Markus Tavenrath
parent f1d3380e31
commit b08af45046
7 changed files with 134 additions and 123 deletions

View File

@@ -55,7 +55,7 @@ int main(int /*argc*/, char ** /*argv*/)
std::vector<vk::UniqueHandle<vk::CommandBuffer, vk::DispatchLoaderDynamic>>::allocator_type dynamicVectorAllocator;
vk::UniqueHandle<vk::CommandBuffer, vk::DispatchLoaderDynamic> dynamicCommandBuffer = std::move(device->allocateCommandBuffersUnique({}, dynamicVectorAllocator, vk::DispatchLoaderDynamic()).front());
}
catch (vk::SystemError err)
catch (vk::SystemError const& err)
{
std::cout << "vk::SystemError: " << err.what() << std::endl;
exit(-1);