Android release fixes (#3788)
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -174,6 +174,8 @@ namespace AZ
|
||||
AZStd::this_thread::sleep_for(milliseconds(1));
|
||||
}
|
||||
return AZ::Debug::Trace::IsDebuggerPresent();
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace AzTestRunner
|
||||
{
|
||||
static char cwd_buffer[AZ_MAX_PATH_LEN] = { '\0' };
|
||||
|
||||
AZ::Utils::ExecutablePathResult result = AZ::Utils::GetExecutableDirectory(cwd_buffer, AZ_ARRAY_SIZE(cwd_buffer));
|
||||
[[maybe_unused]] AZ::Utils::ExecutablePathResult result = AZ::Utils::GetExecutableDirectory(cwd_buffer, AZ_ARRAY_SIZE(cwd_buffer));
|
||||
AZ_Assert(result == AZ::Utils::ExecutablePathResult::Success, "Error retrieving executable path");
|
||||
|
||||
return static_cast<const char*>(cwd_buffer);
|
||||
|
||||
@@ -250,7 +250,7 @@ namespace InAppPurchases
|
||||
document.Parse(fileBuffer.data());
|
||||
if (document.HasParseError())
|
||||
{
|
||||
const char* errorStr = rapidjson::GetParseError_En(document.GetParseError());
|
||||
[[maybe_unused]] const char* errorStr = rapidjson::GetParseError_En(document.GetParseError());
|
||||
AZ_TracePrintf("LumberyardInAppBilling", "Failed to parse product_ids.json: %s\n", errorStr);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace Audio
|
||||
AZ::IO::FileIOStream fileStream(filePath.c_str(), AZ::IO::OpenMode::ModeWrite | AZ::IO::OpenMode::ModeBinary);
|
||||
if (fileStream.IsOpen())
|
||||
{
|
||||
auto bytesWritten = fileStream.Write(m_bufferSize, m_buffer);
|
||||
[[maybe_unused]] auto bytesWritten = fileStream.Write(m_bufferSize, m_buffer);
|
||||
AZ_TracePrintf("WAVUtil", "Wrote WAV file: %s, %d bytes\n", filePath.c_str(), bytesWritten);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user