mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-09 14:10:07 +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(),
|
||||
extensionData.requireData.end(),
|
||||
[&requireData]( RequireData const & rd ) { return rd.depends == requireData.depends; } ),
|
||||
line,
|
||||
"required extension <" + requireData.depends + "> already listed" );
|
||||
checkForWarning( std::none_of( extensionData.requireData.begin(),
|
||||
extensionData.requireData.end(),
|
||||
[&requireData]( RequireData const & rd ) { return rd.depends == requireData.depends; } ),
|
||||
line,
|
||||
"required dependency <" + requireData.depends + "> already listed for extension <" + extensionData.name + ">" );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user