Fix unused warnings release (#3677)

* Release build fix for Windows
* Release build fix for Android
* Release build fix for Windows
* Release build fix for Android
* Release build fix for Linux
* Release build fix for Mac
* Release build fix for iOS

Signed-off-by: Steve Pham <spham@amazon.com>
This commit is contained in:
Steve Pham
2021-08-30 13:10:41 -07:00
committed by GitHub
parent da6bdd5b43
commit fa0f2a1007
94 changed files with 150 additions and 130 deletions
+1
View File
@@ -326,6 +326,7 @@ ActionManager::MenuWrapper ActionManager::FindMenu(const QString& menuId)
return *menuIt;
}
AZ_UNUSED(menuId); // Prevent unused warning in release builds
AZ_Warning("ActionManager", false, "Did not find menu with menuId %s", menuId.toUtf8().data());
return nullptr;
}();
+1 -1
View File
@@ -1528,7 +1528,7 @@ AZ::EntityId EditorViewportWidget::GetCurrentViewEntityId()
&AZ::RPI::ViewProviderBus::Events::GetView
);
const bool isViewEntityCorrect = viewEntityView == GetCurrentAtomView();
[[maybe_unused]] const bool isViewEntityCorrect = viewEntityView == GetCurrentAtomView();
AZ_Error("EditorViewportWidget", isViewEntityCorrect,
"GetCurrentViewEntityId called while the current view is being changed. "
"You may get inconsistent results if you make use of the returned entity ID. "
+1 -1
View File
@@ -1942,7 +1942,7 @@ void CTrackViewAnimNode::OnSelectionChanged(const bool selected)
{
if (m_animNode)
{
const AnimNodeType animNodeType = GetType();
[[maybe_unused]] const AnimNodeType animNodeType = GetType();
AZ_Assert(animNodeType == AnimNodeType::AzEntity, "Expected AzEntity for selection changed");
const EAnimNodeFlags flags = (EAnimNodeFlags)m_animNode->GetFlags();