Clang 13: Fix build errors ...
... due to local variables only being written to (but never read). Signed-off-by: Daniel Edwards <dev@danieledwards.de>
This commit is contained in:
@@ -506,7 +506,7 @@ namespace AzToolsFramework
|
||||
//Remove all Links owned by the Template from TemplateToLinkIdsMap.
|
||||
Template& templateToDelete = findTemplateResult->get();
|
||||
const Template::Links& linkIdsToDelete = templateToDelete.GetLinks();
|
||||
bool result;
|
||||
[[maybe_unused]] bool result;
|
||||
for (auto linkId : linkIdsToDelete)
|
||||
{
|
||||
result = RemoveLinkIdFromTemplateToLinkIdsMap(linkId);
|
||||
@@ -774,7 +774,7 @@ namespace AzToolsFramework
|
||||
}
|
||||
|
||||
Link& link = findLinkResult->get();
|
||||
bool result;
|
||||
[[maybe_unused]] bool result;
|
||||
result = RemoveLinkIdFromTemplateToLinkIdsMap(linkId, link);
|
||||
AZ_Assert(result,
|
||||
"Prefab - PrefabSystemComponent::RemoveLink - "
|
||||
|
||||
Reference in New Issue
Block a user