Fix MSVC warning C4505 for VmaCreateStringCopy

This commit is contained in:
Tiago Chaves 2022-01-14 11:31:30 -03:00 committed by GitHub
parent 4f24cf28c8
commit f333006465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3256,6 +3256,7 @@ static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char
return VMA_NULL;
}
#if VMA_STATS_STRING_ENABLED
static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr, size_t strLen)
{
if (srcStr != VMA_NULL)
@ -3267,6 +3268,7 @@ static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char
}
return VMA_NULL;
}
#endif // VMA_STATS_STRING_ENABLED
static void VmaFreeString(const VkAllocationCallbacks* allocs, char* str)
{