summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-10-18 19:34:38 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-10-18 19:34:38 +0000
commitba507b04e178f6a3b25003231ac2038a90d1d98c (patch)
tree890696e86092fe18fffec4c23fd7e925d51fa4f8 /lldb/source/Plugins/SymbolFile
parent8b8d2a4d999a392ebb90a5e6e739549314a3b52b (diff)
downloadbcm5719-llvm-ba507b04e178f6a3b25003231ac2038a90d1d98c.tar.gz
bcm5719-llvm-ba507b04e178f6a3b25003231ac2038a90d1d98c.zip
Silence -Wqual-cast warnings from GCC 5.2
There were a number of const qualifiers being cast away which caused warnings. This cluttered the output hiding real errors. Silence them by explicit casting. NFC. llvm-svn: 250662
Diffstat (limited to 'lldb/source/Plugins/SymbolFile')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
index 1b7b5d557bc..b9d825489ae 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
@@ -227,7 +227,7 @@ DWARFDebugInfoEntry::Extract
bool isCompileUnitTag = m_tag == DW_TAG_compile_unit;
if (cu && isCompileUnitTag)
- ((DWARFCompileUnit*)cu)->SetBaseAddress(0);
+ const_cast<DWARFCompileUnit *>(cu)->SetBaseAddress(0);
// Skip all data in the .debug_info for the attributes
const uint32_t numAttributes = abbrevDecl->NumAttributes();
OpenPOWER on IntegriCloud