Merge pull request #1234 from theHamsta/fix-warnings

chore(warnings): fix warnings about unused variables in Release mode
This commit is contained in:
Andreas Süßenbach 2022-03-08 13:57:29 +01:00 committed by GitHub
commit d493aa4ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9105,7 +9105,9 @@ std::string
if ( !handle.second.secondLevelCommands.empty() )
{
assert( !handle.second.constructorIts.empty() );
#if !defined( NDEBUG )
auto constructorCommandIt = m_commands.find( handle.second.constructorIts.front()->first );
#endif
assert( ( constructorCommandIt != m_commands.end() ) && ( 1 < constructorCommandIt->second.params.size() ) );
assert( std::next( constructorCommandIt->second.params.begin() )->type.type == "Vk" + parentType );
@ -9732,7 +9734,9 @@ std::tuple<std::string, std::string, std::string, std::string, std::string, std:
assert( !handle.second.constructorIts.front()->second.params.empty() );
auto const & frontType = handle.second.constructorIts.front()->second.params.front().type.type;
assert( isHandleType( frontType ) );
#if !defined( NDEBUG )
auto handleIt = m_handles.find( "Vk" + parentType );
#endif
assert( handleIt != m_handles.end() );
assert( handleIt->second.parent == frontType );
std::string frontName = handle.second.constructorIts.front()->second.params.front().name;