[lld] eda9fdc - Fix -Wunused-local-typedef warning in some build configurations
Dmitri Gribenko via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 22 08:10:40 PDT 2022
Author: Dmitri Gribenko
Date: 2022-09-22T17:10:17+02:00
New Revision: eda9fdc493e5f06c59f29f520255ada23901b3b4
URL: https://github.com/llvm/llvm-project/commit/eda9fdc493e5f06c59f29f520255ada23901b3b4
DIFF: https://github.com/llvm/llvm-project/commit/eda9fdc493e5f06c59f29f520255ada23901b3b4.diff
LOG: Fix -Wunused-local-typedef warning in some build configurations
Added:
Modified:
lld/ELF/OutputSections.cpp
Removed:
################################################################################
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 42af1159560a..a5a6d6022104 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -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 ||
More information about the llvm-commits
mailing list