diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-10-18 19:34:38 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-10-18 19:34:38 +0000 |
commit | ba507b04e178f6a3b25003231ac2038a90d1d98c (patch) | |
tree | 890696e86092fe18fffec4c23fd7e925d51fa4f8 /lldb/source/Plugins/SymbolFile | |
parent | 8b8d2a4d999a392ebb90a5e6e739549314a3b52b (diff) | |
download | bcm5719-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.cpp | 2 |
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(); |