Merge pull request #221 from laurelkeys/patch-1

Fix MSVC warning C4505 for VmaCreateStringCopy
This commit is contained in:
Adam Sawicki 2022-01-14 17:56:51 +01:00 committed by GitHub
commit eccbce26d8
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; return VMA_NULL;
} }
#if VMA_STATS_STRING_ENABLED
static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr, size_t strLen) static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr, size_t strLen)
{ {
if (srcStr != VMA_NULL) if (srcStr != VMA_NULL)
@ -3267,6 +3268,7 @@ static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char
} }
return VMA_NULL; return VMA_NULL;
} }
#endif // VMA_STATS_STRING_ENABLED
static void VmaFreeString(const VkAllocationCallbacks* allocs, char* str) static void VmaFreeString(const VkAllocationCallbacks* allocs, char* str)
{ {