From 3acbe8145c60f4d1e7a180b4602a94269a489df5 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 27 Apr 2023 12:36:59 +0800 Subject: Fix most of the disabled warnings on gcc/clang (#2839) --- source/core/slang-riff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/core/slang-riff.cpp') 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) -- cgit v1.2.3