From: Christoph Egger Date: Tue, 2 Jun 2015 21:23:00 +0000 (+0200) Subject: Silence compiler warnings X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=2cece901cace305ecc8d24d8c0c11d485044be48;p=frida%2Ffrida.git Silence compiler warnings --- 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));