mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-08 13:40:08 +00:00
chore(warnings): fix warnings about unused variables in Release mode
``` /home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:9105:12: error: unused variable 'constructorCommandIt' [-Werror,-Wunused-variable] auto constructorCommandIt = m_commands.find( handle.second.constructorIts.front()->first ); ^ /home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:9732:12: error: unused variable 'handleIt' [-Werror,-Wunused-variable] auto handleIt = m_handles.find( "Vk" + parentType ); ```
This commit is contained in:
parent
2d5c2f44cc
commit
c747ca4588
@ -9102,7 +9102,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 );
|
||||
|
||||
@ -9729,7 +9731,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;
|
||||
|
Loading…
Reference in New Issue
Block a user