Skip to content

Commit

Permalink
Fix warning on GCC 9.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans-Kristian Arntzen committed Jun 19, 2019
1 parent 40d4975 commit 667f0ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vulkan/vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,10 @@ bool Context::create_instance(const char **instance_ext, uint32_t instance_ext_c

#ifdef VULKAN_DEBUG
const auto has_layer = [&](const char *name) -> bool {
auto itr = find_if(begin(queried_layers), end(queried_layers), [name](const VkLayerProperties &e) -> bool {
auto layer_itr = find_if(begin(queried_layers), end(queried_layers), [name](const VkLayerProperties &e) -> bool {
return strcmp(e.layerName, name) == 0;
});
return itr != end(queried_layers);
return layer_itr != end(queried_layers);
};

if (!ext.supports_debug_utils && has_extension(VK_EXT_DEBUG_REPORT_EXTENSION_NAME))
Expand Down

0 comments on commit 667f0ad

Please sign in to comment.