Enable -Wnon-pod-varargs (#1278)

This commit is contained in:
Chris Burel
2021-06-11 15:43:09 -07:00
committed by GitHub
parent 004549c618
commit d7ec767ebc
3 changed files with 2 additions and 3 deletions
@@ -230,7 +230,7 @@ namespace AzToolsFramework::AssetUtils
AZStd::vector<AzFramework::GemInfo> gemInfoList;
if (!AzFramework::GetGemsInfo(gemInfoList, *settingsRegistry))
{
AZ_Error("AzToolsFramework::AssetUtils", false, "Failed to read gems from project folder(%s).\n", projectPath);
AZ_Error("AzToolsFramework::AssetUtils", false, "Failed to read gems from project folder(%.*s).\n", AZ_STRING_ARG(projectPath));
return {};
}
@@ -336,7 +336,7 @@ namespace AzToolsFramework
{
// Load the template from the file
templateId = m_prefabLoaderInterface->LoadTemplateFromFile(filePath);
AZ_Assert(templateId != InvalidTemplateId, "Template with source path %s couldn't be loaded correctly.", filePath);
AZ_Assert(templateId != InvalidTemplateId, "Template with source path %.*s couldn't be loaded correctly.", AZ_STRING_ARG(filePath));
}
const PrefabDom& templateDom = m_prefabSystemComponentInterface->FindTemplateDom(templateId);
@@ -40,7 +40,6 @@ ly_append_configurations_options(
-Wno-unused-private-field
-Wno-unused-value
-Wno-unused-variable
-Wno-non-pod-varargs
-Wno-unused-lambda-capture
# Workaround for compiler seeing file case differently from what OS show in console.
-Wno-nonportable-include-path