Fix alignment of VmaPoolAllocator::Item::Value

Disable Visual Studio warning C4324.

See #71
This commit is contained in:
Adam Sawicki 2019-07-26 15:09:07 +02:00
parent c7e5f2e44a
commit 5afe7845a1
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ include all public interface declarations. Example:
#pragma warning(disable: 4127) // conditional expression is constant
#pragma warning(disable: 4100) // unreferenced formal parameter
#pragma warning(disable: 4189) // local variable is initialized but not referenced
#pragma warning(disable: 4324) // structure was padded due to alignment specifier
#include "vk_mem_alloc.h"

View File

@ -4344,7 +4344,7 @@ private:
union Item
{
uint32_t NextFreeIndex;
char Value[sizeof(T)];
alignas(T) char Value[sizeof(T)];
};
struct ItemBlock