[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:
Anatoliy Tomilov 2021-01-15 07:28:26 +05:00
parent 8d8436cc51
commit c45058764e

View File

@ -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