Skip to content

Commit

Permalink
Eliminate warning in D3D12MA
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
alpqr authored and robUx4 committed Sep 3, 2024
1 parent 2b7c0d4 commit f44eefd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/D3D12MemAlloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f44eefd

Please sign in to comment.