[Lldb-commits] [PATCH] D57506: [LLDB] FreeBSD suppress compilation warning

David CARLIER via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 31 03:56:08 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL352744: [LLDB] FreeBSD suppress compilation warning (authored by devnexen, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D57506?vs=184480&id=184482#toc

Repository:
  rL LLVM

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

https://reviews.llvm.org/D57506

Files:
  lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp


Index: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
===================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
+++ lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
@@ -167,7 +167,7 @@
 
   pi_desc.piod_op = PIOD_WRITE_D;
   pi_desc.piod_offs = (void *)vm_addr;
-  pi_desc.piod_addr = (void *)buf;
+  pi_desc.piod_addr = const_cast<void *>(buf);
   pi_desc.piod_len = size;
 
   if (PTRACE(PT_IO, pid, (caddr_t)&pi_desc, 0) < 0) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57506.184482.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190131/65e6458f/attachment.bin>


More information about the lldb-commits mailing list