mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-14 14:31:28 -04: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() )
|
if ( !handle.second.secondLevelCommands.empty() )
|
||||||
{
|
{
|
||||||
assert( !handle.second.constructorIts.empty() );
|
assert( !handle.second.constructorIts.empty() );
|
||||||
|
#if !defined( NDEBUG )
|
||||||
auto constructorCommandIt = m_commands.find( handle.second.constructorIts.front()->first );
|
auto constructorCommandIt = m_commands.find( handle.second.constructorIts.front()->first );
|
||||||
|
#endif
|
||||||
assert( ( constructorCommandIt != m_commands.end() ) && ( 1 < constructorCommandIt->second.params.size() ) );
|
assert( ( constructorCommandIt != m_commands.end() ) && ( 1 < constructorCommandIt->second.params.size() ) );
|
||||||
assert( std::next( constructorCommandIt->second.params.begin() )->type.type == "Vk" + parentType );
|
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() );
|
assert( !handle.second.constructorIts.front()->second.params.empty() );
|
||||||
auto const & frontType = handle.second.constructorIts.front()->second.params.front().type.type;
|
auto const & frontType = handle.second.constructorIts.front()->second.params.front().type.type;
|
||||||
assert( isHandleType( frontType ) );
|
assert( isHandleType( frontType ) );
|
||||||
|
#if !defined( NDEBUG )
|
||||||
auto handleIt = m_handles.find( "Vk" + parentType );
|
auto handleIt = m_handles.find( "Vk" + parentType );
|
||||||
|
#endif
|
||||||
assert( handleIt != m_handles.end() );
|
assert( handleIt != m_handles.end() );
|
||||||
assert( handleIt->second.parent == frontType );
|
assert( handleIt->second.parent == frontType );
|
||||||
std::string frontName = handle.second.constructorIts.front()->second.params.front().name;
|
std::string frontName = handle.second.constructorIts.front()->second.params.front().name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user