summaryrefslogtreecommitdiff
path: root/source/core/slang-riff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-riff.cpp')
-rw-r--r--source/core/slang-riff.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-riff.cpp b/source/core/slang-riff.cpp
index 670fed7a2..a90c65db9 100644
--- a/source/core/slang-riff.cpp
+++ b/source/core/slang-riff.cpp
@@ -278,7 +278,6 @@ struct DumpVisitor : public RiffContainer::Visitor
/* static */SlangResult RiffUtil::read(Stream* stream, RiffContainer& outContainer)
{
typedef RiffContainer::ScopeChunk ScopeChunk;
- typedef RiffContainer::ScopeChunk ScopeContainer;
outContainer.reset();
size_t remaining;
@@ -773,7 +772,8 @@ void RiffContainer::endChunk()
size_t chunkPayloadSize;
// The chunk we are popping
- Chunk* chunk = nullptr;
+ // Only keep track of this in debug builds
+ [[maybe_unused]] Chunk* chunk = nullptr;
ListChunk* parent;
if (m_dataChunk)