Fix -Wunused-local-typedef warning in some build configurations

This commit is contained in:
Dmitri Gribenko 2022-09-22 17:09:58 +02:00
parent 885a87033c
commit eda9fdc493
1 changed files with 1 additions and 0 deletions

View File

@ -325,6 +325,7 @@ static SmallVector<uint8_t, 0> deflateShard(ArrayRef<uint8_t> in, int level,
// Compress section contents if this section contains debug info.
template <class ELFT> void OutputSection::maybeCompress() {
using Elf_Chdr = typename ELFT::Chdr;
(void)sizeof(Elf_Chdr);
// Compress only DWARF debug sections.
if (config->compressDebugSections == DebugCompressionType::None ||