瀏覽代碼

Adding [[maybe_unused]] to variables that would not get hit in release mode in JsonSlotSerializer (#1486)

Danilo Aimini 4 年之前
父節點
當前提交
6fe448d991
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Gems/GraphModel/Code/Source/Model/Slot.cpp

+ 3 - 3
Gems/GraphModel/Code/Source/Model/Slot.cpp

@@ -300,7 +300,7 @@ namespace GraphModel
     // Slot
 
     AZ::JsonSerializationResult::Result JsonSlotSerializer::Load(
-        void* outputValue, const AZ::Uuid& outputValueTypeId, const rapidjson::Value& inputValue,
+        void* outputValue, [[maybe_unused]] const AZ::Uuid& outputValueTypeId, const rapidjson::Value& inputValue,
         AZ::JsonDeserializerContext& context)
     {
         namespace JSR = AZ::JsonSerializationResult;
@@ -343,12 +343,12 @@ namespace GraphModel
 
         return context.Report(
             result,
-            result.GetProcessing() != JSR::Processing::Halted ? "Succesfully loaded Slot information."
+            result.GetProcessing() != JSR::Processing::Halted ? "Successfully loaded Slot information."
             : "Failed to load Slot information.");
     }
 
     AZ::JsonSerializationResult::Result JsonSlotSerializer::Store(
-        rapidjson::Value& outputValue, const void* inputValue, [[maybe_unused]] const void* defaultValue, const AZ::Uuid& valueTypeId,
+        rapidjson::Value& outputValue, const void* inputValue, [[maybe_unused]] const void* defaultValue, [[maybe_unused]] const AZ::Uuid& valueTypeId,
         AZ::JsonSerializerContext& context)
     {
         namespace JSR = AZ::JsonSerializationResult;