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
@@ -908,9 +908,9 @@ namespace AZ
AZ_Assert(optionEntry.IsObject(), "Expected option entry to be an object!");
Name defaultValueId = optionEntry.HasMember("defaultValue") ? Name(optionEntry["defaultValue"].GetString()) : Name();
const AZStd::string optionName = optionEntry.HasMember("name") ? optionEntry["name"].GetString() : "";
const bool valuesAreRange = optionEntry.HasMember("range") ? optionEntry["range"].GetBool() : false;
const bool isPredefinedType = optionEntry.HasMember("kind") ? AzFramework::StringFunc::Equal(optionEntry["kind"].GetString(), "predefined") : false;
const AZStd::string optionName = optionEntry.HasMember("name") ? optionEntry["name"].GetString() : "";
[[maybe_unused]] const bool valuesAreRange = optionEntry.HasMember("range") ? optionEntry["range"].GetBool() : false;
const bool isPredefinedType = optionEntry.HasMember("kind") ? AzFramework::StringFunc::Equal(optionEntry["kind"].GetString(), "predefined") : false;
auto optionType = RPI::ShaderOptionType::Unknown;
if (isPredefinedType && optionEntry.HasMember("type"))