mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Downgrade error on multiple identical "depends" attributes for "require" sections for an extension to a warning. (#1765)
This commit is contained in:
parent
d2f13e2f7f
commit
db5c141013
@ -12948,11 +12948,11 @@ void VulkanHppGenerator::readExtensionRequire( tinyxml2::XMLElement const * elem
|
||||
{
|
||||
assert( requireData.depends.empty() );
|
||||
requireData.depends = attribute.second;
|
||||
checkForError( std::none_of( extensionData.requireData.begin(),
|
||||
checkForWarning( std::none_of( extensionData.requireData.begin(),
|
||||
extensionData.requireData.end(),
|
||||
[&requireData]( RequireData const & rd ) { return rd.depends == requireData.depends; } ),
|
||||
line,
|
||||
"required extension <" + requireData.depends + "> already listed" );
|
||||
"required dependency <" + requireData.depends + "> already listed for extension <" + extensionData.name + ">" );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user