]> git.siccegge.de Git - frida/frida.git/commitdiff
Silence compiler warnings
authorChristoph Egger <christoph@christoph-egger.org>
Tue, 2 Jun 2015 21:23:00 +0000 (23:23 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Tue, 2 Jun 2015 21:23:00 +0000 (23:23 +0200)
src/disassembler/llvm/LLVMDisassembler.cxx

index 5dc7f3a0489d265dc70383c35255ac3dde2eae6b..493108bbece779ed4db4c1e5064bc7a4fb17f1dd 100644 (file)
@@ -390,10 +390,10 @@ void LLVMDisassembler<ELFT>::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<ELFT>::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));