summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>2017-01-19 15:11:01 +0000
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>2017-01-19 15:11:01 +0000
commit05008cac15ee93da968cd7eb1e410db0fad9334c (patch)
treec08bc667f70233730f656f356ea918f77bdb7e77 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent3b23eac71fb08d4af0d60f797dada13a1b4dc50f (diff)
downloadbcm5719-llvm-05008cac15ee93da968cd7eb1e410db0fad9334c.tar.gz
bcm5719-llvm-05008cac15ee93da968cd7eb1e410db0fad9334c.zip
Avoid unused variable warning when assert is disabled.
llvm-svn: 292488
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index fac52901e76..992a71912cd 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -576,7 +576,7 @@ void ProcessGDBRemote::BuildDynamicRegisterInfo(bool force) {
uint32_t ret_val =
opcode_extractor.GetHexBytesAvail(dwarf_opcode_bytes);
assert(dwarf_opcode_len == ret_val);
-
+ UNUSED_IF_ASSERT_DISABLED(ret_val);
reg_info.dynamic_size_dwarf_expr_bytes = dwarf_opcode_bytes.data();
}
}
@@ -4213,7 +4213,7 @@ bool ParseRegisters(XMLNode feature_node, GdbServerTargetInfo &target_info,
uint32_t ret_val =
opcode_extractor.GetHexBytesAvail(dwarf_opcode_bytes);
assert(dwarf_opcode_len == ret_val);
-
+ UNUSED_IF_ASSERT_DISABLED(ret_val);
reg_info.dynamic_size_dwarf_expr_bytes = dwarf_opcode_bytes.data();
} else {
printf("unhandled attribute %s = %s\n", name.data(), value.data());
OpenPOWER on IntegriCloud