Android release fixes (#3788)

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-31 16:51:57 -07:00
committed by GitHub
parent 873654a9fc
commit d838a0fcbc
4 changed files with 5 additions and 3 deletions
@@ -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;
}