mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Fix MSVC warning C4505 for VmaCreateStringCopy
This commit is contained in:
parent
4f24cf28c8
commit
f333006465
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue