diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-04-27 12:36:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 21:36:59 -0700 |
| commit | 3acbe8145c60f4d1e7a180b4602a94269a489df5 (patch) | |
| tree | 8031e7ca897260ac3ab6d2a920864f3114bc8668 /source/slang/slang-serialize-ir.cpp | |
| parent | a3da31c189a1cc9bdf85a42ac359b8c2777f3550 (diff) | |
Fix most of the disabled warnings on gcc/clang (#2839)
Diffstat (limited to 'source/slang/slang-serialize-ir.cpp')
| -rw-r--r-- | source/slang/slang-serialize-ir.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/slang/slang-serialize-ir.cpp b/source/slang/slang-serialize-ir.cpp index 2da923c43..d84049b74 100644 --- a/source/slang/slang-serialize-ir.cpp +++ b/source/slang/slang-serialize-ir.cpp @@ -323,7 +323,6 @@ Result IRSerialWriter::write(IRModule* module, SerialSourceLocWriter* sourceLocW Result _encodeInsts(SerialCompressionType compressionType, const List<IRSerialData::Inst>& instsIn, List<uint8_t>& encodeArrayOut) { - typedef IRSerialBinary Bin; typedef IRSerialData::Inst::PayloadType PayloadType; if (compressionType != SerialCompressionType::VariableByteLite) @@ -417,7 +416,6 @@ Result _writeInstArrayChunk(SerialCompressionType compressionType, FourCC chunkI typedef RiffContainer::Chunk Chunk; typedef RiffContainer::ScopeChunk ScopeChunk; - typedef IRSerialBinary Bin; if (array.getCount() == 0) { return SLANG_OK; @@ -509,7 +507,6 @@ static Result _decodeInsts(SerialCompressionType compressionType, const uint8_t* { const uint8_t* encodeEnd = encodeCur + encodeInSize; - typedef IRSerialBinary Bin; typedef IRSerialData::Inst::PayloadType PayloadType; if (compressionType != SerialCompressionType::VariableByteLite) @@ -678,7 +675,8 @@ static Result _readInstArrayChunk(SerialCompressionType containerCompressionType Result IRSerialReader::read(const IRSerialData& data, Session* session, SerialSourceLocReader* sourceLocReader, RefPtr<IRModule>& outModule) { - typedef Ser::Inst::PayloadType PayloadType; + // Only used in debug builds + [[maybe_unused]] typedef Ser::Inst::PayloadType PayloadType; m_serialData = &data; |
