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/DataFormatters/StringPrinter.cpp | |
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/DataFormatters/StringPrinter.cpp')
-rw-r--r-- | lldb/source/DataFormatters/StringPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/DataFormatters/StringPrinter.cpp b/lldb/source/DataFormatters/StringPrinter.cpp index 98a9e1a5398..a63a1fe9221 100644 --- a/lldb/source/DataFormatters/StringPrinter.cpp +++ b/lldb/source/DataFormatters/StringPrinter.cpp @@ -324,8 +324,8 @@ DumpUTFBufferToStream (ConversionResult (*ConvertFunction) (const SourceDataType { // just copy the pointers - the cast is necessary to make the compiler happy // but this should only happen if we are reading UTF8 data - utf8_data_ptr = (UTF8*)data_ptr; - utf8_data_end_ptr = (UTF8*)data_end_ptr; + utf8_data_ptr = const_cast<UTF8 *>(reinterpret_cast<const UTF8*>(data_ptr)); + utf8_data_end_ptr = const_cast<UTF8 *>(reinterpret_cast<const UTF8*>(data_end_ptr)); } const bool escape_non_printables = dump_options.GetEscapeNonPrintables(); |