summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-09-29 22:10:02 -0400
committerPeter LaFosse <peter@vector35.com>2018-09-29 22:10:02 -0400
commitc75d1b4f9d241e245d44841919300c099f2fb240 (patch)
treed6572dde6df181ace57958c9e210f5966a7aee6d
parent7cb14d06391656391b4fa049adb3c3788d53e05b (diff)
Fix issue with GetNameSpace, squash warning
-rw-r--r--binaryview.cpp1
-rw-r--r--relocationhandler.cpp5
2 files changed, 6 insertions, 0 deletions
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<BinaryView> view, Ref<Architecture>
size_t RelocationHandler::GetOperandForExternalRelocation(const uint8_t* data, uint64_t addr, size_t length,
Ref<LowLevelILFunction> il, Ref<Relocation> relocation)
{
+ (void)data;
+ (void)addr;
+ (void)length;
+ (void)il;
+ (void)relocation;
return BN_INVALID_OPERAND;
}