From f44eefdac61a4122a4aea408a41286edc01d9442 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Sat, 21 Jan 2023 20:07:00 +0100 Subject: [PATCH] Eliminate warning in D3D12MA warning: 'QueryInterface' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] Patch originally found in Qt: https://github.com/qt/qtbase/blob/aec8398d71d351e956683a695af51317fe65097e/src/3rdparty/D3D12MemoryAllocator/patches/0001-Eliminate-warnings-in-D3D12MA.patch Signed-off-by: Steve Lhomme --- include/D3D12MemAlloc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/D3D12MemAlloc.h b/include/D3D12MemAlloc.h index a12034f..ab5e01b 100644 --- a/include/D3D12MemAlloc.h +++ b/include/D3D12MemAlloc.h @@ -160,9 +160,9 @@ class D3D12MA_API IUnknownImpl : public IUnknown { public: virtual ~IUnknownImpl() = default; - virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject); - virtual ULONG STDMETHODCALLTYPE AddRef(); - virtual ULONG STDMETHODCALLTYPE Release(); + HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject) override; + ULONG STDMETHODCALLTYPE AddRef() override; + ULONG STDMETHODCALLTYPE Release() override; protected: virtual void ReleaseThis() { delete this; } private: