[Lldb-commits] [PATCH] D62021: Fix LLDB warnings when compiling with Clang 8.0

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri May 17 00:10:22 PDT 2019


labath added inline comments.


================
Comment at: source/Host/windows/ProcessLauncherWindows.cpp:35-37
+          reinterpret_cast<char *>(const_cast<wchar_t *>(warg.c_str())),
+          reinterpret_cast<char *>(
+              const_cast<wchar_t *>(warg.c_str() + warg.size() + 1)));
----------------
I don't believe the const_cast here is needed. You should be able to just reinterpret_cast to `const char *`..


Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62021/new/

https://reviews.llvm.org/D62021





More information about the lldb-commits mailing list