From 8a7f80743a294b542fe5b149615df2b383f6e5b5 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Tue, 19 Apr 2022 10:55:48 -0400 Subject: [PATCH] Fix return type of GetAllocationNextPtr Returning `void* const` doesn't mean anything (produces a warning with -Wignored-qualifiers). Based on usage, it looks like the returned pointer is expected to point at const data, so I've fixed the declaration to reflect that. --- include/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 7b577c3..90410b5 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -10928,7 +10928,7 @@ public: uint32_t GetAlgorithm() const { return m_Algorithm; } bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; } float GetPriority() const { return m_Priority; } - void* const GetAllocationNextPtr() const { return m_pMemoryAllocateNext; } + const void* GetAllocationNextPtr() const { return m_pMemoryAllocateNext; } // To be used only while the m_Mutex is locked. Used during defragmentation. size_t GetBlockCount() const { return m_Blocks.size(); } // To be used only while the m_Mutex is locked. Used during defragmentation.