From 678de6547bc8cac15e31de30b400e9a3b45c216f Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Wed, 30 Apr 2025 14:04:57 -0700 Subject: Fix compiler warning with clang 18.1.8 on windows (#6963) --- source/slang-record-replay/replay/decoder-helper.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source') diff --git a/source/slang-record-replay/replay/decoder-helper.h b/source/slang-record-replay/replay/decoder-helper.h index f3f1c17f0..9d68adee6 100644 --- a/source/slang-record-replay/replay/decoder-helper.h +++ b/source/slang-record-replay/replay/decoder-helper.h @@ -79,7 +79,7 @@ private: { public: // ISlangUnknown - virtual SlangResult SLANG_MCALL + virtual SLANG_NO_THROW SlangResult SLANG_MCALL queryInterface(SlangUUID const& uuid, void** outObject) override { if (uuid == ISlangUnknown::getTypeGuid() || uuid == ISlangBlob::getTypeGuid()) @@ -91,18 +91,18 @@ private: return SLANG_E_NO_INTERFACE; } - virtual uint32_t SLANG_MCALL addRef() override { return 1; } - virtual uint32_t SLANG_MCALL release() override { return 1; } + virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef() override { return 1; } + virtual SLANG_NO_THROW uint32_t SLANG_MCALL release() override { return 1; } BlobImpl(const PointerDecoder* blobData) : m_pBlobData(blobData) { } - virtual const void* SLANG_MCALL getBufferPointer() SLANG_OVERRIDE + virtual SLANG_NO_THROW void const* SLANG_MCALL getBufferPointer() SLANG_OVERRIDE { return m_pBlobData->getPointer(); } - virtual size_t SLANG_MCALL getBufferSize() SLANG_OVERRIDE + virtual SLANG_NO_THROW size_t SLANG_MCALL getBufferSize() SLANG_OVERRIDE { return m_pBlobData->getDataSize(); } -- cgit v1.2.3