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
@@ -254,7 +254,7 @@ namespace AZ
poolAssetCreator.SetPoolDescriptor(AZStd::move(imagePoolDescriptor));
poolAssetCreator.SetControllerAsset(m_defaultStreamingImageControllerAsset);
poolAssetCreator.SetPoolName(systemStreamingPoolDescriptor.m_name);
const bool created = poolAssetCreator.End(poolAsset);
[[maybe_unused]] const bool created = poolAssetCreator.End(poolAsset);
AZ_Assert(created, "Failed to build streaming image pool");
m_systemStreamingPool = StreamingImagePool::FindOrCreate(poolAsset);
@@ -272,7 +272,7 @@ namespace AZ
poolAssetCreator.SetPoolDescriptor(AZStd::move(imagePoolDescriptor));
poolAssetCreator.SetControllerAsset(m_defaultStreamingImageControllerAsset);
poolAssetCreator.SetPoolName(assetStreamingPoolDescriptor.m_name);
const bool created = poolAssetCreator.End(poolAsset);
[[maybe_unused]] const bool created = poolAssetCreator.End(poolAsset);
AZ_Assert(created, "Failed to build streaming image pool for assets");
m_assetStreamingPool = StreamingImagePool::FindOrCreate(poolAsset);
@@ -292,7 +292,7 @@ namespace AZ
poolAssetCreator.Begin(systemAttachmentPoolDescriptor.m_assetId);
poolAssetCreator.SetPoolDescriptor(AZStd::move(imagePoolDescriptor));
poolAssetCreator.SetPoolName(systemAttachmentPoolDescriptor.m_name);
const bool created = poolAssetCreator.End(poolAsset);
[[maybe_unused]] const bool created = poolAssetCreator.End(poolAsset);
AZ_Assert(created, "Failed to build attachment image pool");
m_systemAttachmentPool = AttachmentImagePool::FindOrCreate(poolAsset);