From ba507b04e178f6a3b25003231ac2038a90d1d98c Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 18 Oct 2015 19:34:38 +0000 Subject: 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 --- lldb/source/Core/StreamString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Core/StreamString.cpp') diff --git a/lldb/source/Core/StreamString.cpp b/lldb/source/Core/StreamString.cpp index ef2b70583eb..36e086b0b43 100644 --- a/lldb/source/Core/StreamString.cpp +++ b/lldb/source/Core/StreamString.cpp @@ -37,7 +37,7 @@ StreamString::Flush () size_t StreamString::Write (const void *s, size_t length) { - m_packet.append ((char *)s, length); + m_packet.append (reinterpret_cast(s), length); return length; } -- cgit v1.2.3