Fixed printf warnings

This commit is contained in:
Chuck Walbourn 2020-05-19 20:18:06 -07:00
parent b3dee21bc6
commit 9931762719

View File

@ -1098,8 +1098,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
hr = inMesh->Validate(VALIDATE_DEFAULT, &msgs); hr = inMesh->Validate(VALIDATE_DEFAULT, &msgs);
if (!msgs.empty()) if (!msgs.empty())
{ {
wprintf(L"\nWARNING: \n"); wprintf(L"\nWARNING: \n%ls\n", msgs.c_str());
wprintf(msgs.c_str());
} }
#endif #endif
@ -1137,7 +1136,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
Mesh::Material mtl = {}; Mesh::Material mtl = {};
wchar_t matname[32] = {}; wchar_t matname[32] = {};
swprintf_s(matname, L"Chart%02Iu", j + 1); swprintf_s(matname, L"Chart%02zu", j + 1);
mtl.name = matname; mtl.name = matname;
mtl.specularPower = 1.f; mtl.specularPower = 1.f;
mtl.alpha = 1.f; mtl.alpha = 1.f;