Переглянути джерело

Fix compilation errors in windows release

Aaron Ruiz Mora 4 роки тому
батько
коміт
87ec96fbf4

+ 2 - 2
Code/Tools/ProjectManager/Source/PythonBindings.cpp

@@ -200,11 +200,11 @@ namespace RedirectOutput
     {
         s_RedirectModule = module;
 
-        SetRedirection("stdout", g_redirect_stdout_saved, g_redirect_stdout, [](const char* msg) {
+        SetRedirection("stdout", g_redirect_stdout_saved, g_redirect_stdout, []([[maybe_unused]] const char* msg) {
             AZ_TracePrintf("Python", msg);
         });
 
-        SetRedirection("stderr", g_redirect_stderr_saved, g_redirect_stderr, [](const char* msg) {
+        SetRedirection("stderr", g_redirect_stderr_saved, g_redirect_stderr, []([[maybe_unused]] const char* msg) {
             AZ_TracePrintf("Python", msg);
         });
 

+ 1 - 2
Code/Tools/SerializeContextTools/SliceConverter.cpp

@@ -173,8 +173,7 @@ namespace AZ
                 return false;
             }
 
-            const SliceComponent::SliceList& sliceList = sliceComponent->GetSlices();
-            AZ_Warning("Convert-Slice", sliceList.empty(), "  Slice depends on other slices, this conversion will lose data.\n");
+            AZ_Warning("Convert-Slice", sliceComponent->GetSlices().empty(), "  Slice depends on other slices, this conversion will lose data.\n");
 
             // Create the Prefab with the entities from the slice
             AZStd::unique_ptr<AzToolsFramework::Prefab::Instance> sourceInstance(