Prechádzať zdrojové kódy

Fixed compilation error in release configuration (#1757)

Signed-off-by: moraaar <[email protected]>
Aaron Ruiz Mora 4 rokov pred
rodič
commit
6459375b4e

+ 4 - 1
Code/Tools/AssetProcessor/native/tests/AssetProcessorTest.cpp

@@ -84,7 +84,10 @@ namespace AssetProcessor
             AssetProcessorTest::TearDown();
         }
 
-        void OnError([[maybe_unused]] const AZ::IO::SystemFile* file, const char* fileName, int errorCode) override
+        void OnError(
+            [[maybe_unused]] const AZ::IO::SystemFile* file,
+            [[maybe_unused]] const char* fileName,
+            [[maybe_unused]] int errorCode) override
         {
             AZ_Error("LegacyTestAdapter", false, "File error detected with %s with code %d", fileName, errorCode);
         }

+ 1 - 1
Code/Tools/ProjectManager/Source/ProjectBuilderWorker.cpp

@@ -64,7 +64,7 @@ namespace O3DE::ProjectManager
         return logFilePath.filePath(ProjectBuildErrorLogName);
     }
 
-    void ProjectBuilderWorker::QStringToAZTracePrint(const QString& error)
+    void ProjectBuilderWorker::QStringToAZTracePrint([[maybe_unused]] const QString& error)
     {
         AZ_TracePrintf("Project Manager", error.toStdString().c_str());
     }