diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index 8fd1ca069dc01..1272f13c1d82d 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -659,7 +659,7 @@ Status NativeFile::Write(const void *buf, size_t &num_bytes) { #ifdef _WIN32 if (is_windows_console) { llvm::raw_fd_ostream(_fileno(m_stream), false) - .write((char *)buf, num_bytes); + .write((const char *)buf, num_bytes); return error; } #endif diff --git a/lldb/source/Host/windows/Host.cpp b/lldb/source/Host/windows/Host.cpp index e8973a3fb937a..d5704eed10ecb 100644 --- a/lldb/source/Host/windows/Host.cpp +++ b/lldb/source/Host/windows/Host.cpp @@ -321,7 +321,6 @@ void Host::SystemLog(Severity severity, llvm::StringRef message) { stream << "[Error] "; break; case lldb::eSeverityInfo: - default: stream << "[Info] "; break; }