mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 21:17:53 +00:00
Core/AssetNameGeneration: Mark assert variables as maybe unused
These may be considered unused in release builds.
This commit is contained in:
@@ -80,7 +80,7 @@ void ApplyGeneratedName(CResourceEntry *pEntry, const TString& rkDir, const TStr
|
||||
if (pEntry->Directory() == pNewDir && pEntry->Name() == NewName) return;
|
||||
|
||||
// Perform the move
|
||||
bool Success = pEntry->MoveAndRename(pNewDir->FullPath(), NewName, true, true);
|
||||
[[maybe_unused]] const bool Success = pEntry->MoveAndRename(pNewDir->FullPath(), NewName, true, true);
|
||||
ASSERT(Success);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user