mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
[linux][warnings] Fix -Werror=unused-but-set-variable on GCC 10.2, Linux
Variable definition moved into a block where it is conditionally used.
This commit is contained in:
parent
8d8436cc51
commit
c45058764e
@ -4091,11 +4091,10 @@ std::string
|
||||
{
|
||||
assert( commandData.returnType == "VkResult" );
|
||||
|
||||
auto firstVectorParamIt = vectorParamIndices.begin();
|
||||
|
||||
assert( commandData.params[0].type.type == commandData.handle );
|
||||
|
||||
#if !defined( NDEBUG )
|
||||
auto firstVectorParamIt = vectorParamIndices.begin();
|
||||
auto secondVectorParamIt = std::next( firstVectorParamIt );
|
||||
assert( firstVectorParamIt->second == secondVectorParamIt->second );
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user