From c75d1b4f9d241e245d44841919300c099f2fb240 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Sat, 29 Sep 2018 22:10:02 -0400 Subject: Fix issue with GetNameSpace, squash warning --- binaryview.cpp | 1 + relocationhandler.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/binaryview.cpp b/binaryview.cpp index 7ddcf672..1a53d5c8 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -197,6 +197,7 @@ NameSpace Symbol::GetNameSpace() const BNNameSpace name = BNGetSymbolNameSpace(m_object); NameSpace result = NameSpace::FromAPIObject(&name); BNFreeNameSpace(&name); + return result; } diff --git a/relocationhandler.cpp b/relocationhandler.cpp index baceca48..ae0897dc 100644 --- a/relocationhandler.cpp +++ b/relocationhandler.cpp @@ -108,6 +108,11 @@ bool RelocationHandler::ApplyRelocation(Ref view, Ref size_t RelocationHandler::GetOperandForExternalRelocation(const uint8_t* data, uint64_t addr, size_t length, Ref il, Ref relocation) { + (void)data; + (void)addr; + (void)length; + (void)il; + (void)relocation; return BN_INVALID_OPERAND; } -- cgit v1.3.1