From 483acccff13289a362c337eb9cc751ac04008f57 Mon Sep 17 00:00:00 2001 From: TheLavaBlock <36247472+TheLavaBlock@users.noreply.github.com> Date: Tue, 28 Aug 2018 12:58:42 +0200 Subject: [PATCH] Fixes warning: field 'm_Blocks' will be initialized after field 'm_HasEmptyBlock' [-Wreorder] --- src/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 47c78b0..c5d15ca 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -9380,8 +9380,8 @@ VmaBlockVector::VmaBlockVector( m_IsCustomPool(isCustomPool), m_ExplicitBlockSize(explicitBlockSize), m_LinearAlgorithm(linearAlgorithm), - m_Blocks(VmaStlAllocator(hAllocator->GetAllocationCallbacks())), m_HasEmptyBlock(false), + m_Blocks(VmaStlAllocator(hAllocator->GetAllocationCallbacks())), m_pDefragmentator(VMA_NULL), m_NextBlockId(0) {