Merge pull request #855 from tomilov/fix-werror

[linux][warnings] Fix -Werror=unused-but-set-variable on GCC 10.2, Linux
This commit is contained in:
Andreas Süßenbach 2021-01-18 12:07:03 +01:00 committed by GitHub
commit 6021a83770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4121,11 +4121,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