From 2cece901cace305ecc8d24d8c0c11d485044be48 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 2 Jun 2015 23:23:00 +0200 Subject: [PATCH] Silence compiler warnings --- src/disassembler/llvm/LLVMDisassembler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/disassembler/llvm/LLVMDisassembler.cxx b/src/disassembler/llvm/LLVMDisassembler.cxx index 5dc7f3a..493108b 100644 --- a/src/disassembler/llvm/LLVMDisassembler.cxx +++ b/src/disassembler/llvm/LLVMDisassembler.cxx @@ -390,10 +390,10 @@ void LLVMDisassembler::disassemble() { // Assume all function symbols actually start a real function for (auto x = symbols.begin(); x != symbols.end(); ++x) { uint64_t result; - bool contains; SymbolRef::Type symbol_type; #if defined(LLVM_35) + bool contains; if (text_section.containsSymbol(x->second, contains) || !contains) #elif defined(LLVM_36) if (!text_section.containsSymbol(x->second)) @@ -565,7 +565,7 @@ void LLVMDisassembler::readDynamicSymbols() { it != end; ++it) { if (it->getType() == 2) { // Function - bool is_default; + bool is_default(false); // TODO: Error handling std::string symbolname = *(elffile->getSymbolName(it)); std::string symbolversion = *(elffile->getSymbolVersion(nullptr, &*it, is_default)); -- 2.39.5