[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" );
|
assert( commandData.returnType == "VkResult" );
|
||||||
|
|
||||||
auto firstVectorParamIt = vectorParamIndices.begin();
|
|
||||||
|
|
||||||
assert( commandData.params[0].type.type == commandData.handle );
|
assert( commandData.params[0].type.type == commandData.handle );
|
||||||
|
|
||||||
#if !defined( NDEBUG )
|
#if !defined( NDEBUG )
|
||||||
|
auto firstVectorParamIt = vectorParamIndices.begin();
|
||||||
auto secondVectorParamIt = std::next( firstVectorParamIt );
|
auto secondVectorParamIt = std::next( firstVectorParamIt );
|
||||||
assert( firstVectorParamIt->second == secondVectorParamIt->second );
|
assert( firstVectorParamIt->second == secondVectorParamIt->second );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user