mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Fixed few warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -528,7 +528,8 @@ void raw_fd_ostream::write_impl(const char *Ptr, size_t Size) {
|
||||
} else {
|
||||
// Use ::writev() where available.
|
||||
#if defined(HAVE_WRITEV)
|
||||
struct iovec IOV = { (void*) Ptr, Size };
|
||||
const void *Addr = static_cast<const void *>(Ptr);
|
||||
struct iovec IOV = {const_cast<void *>(Addr), Size };
|
||||
ret = ::writev(FD, &IOV, 1);
|
||||
#else
|
||||
ret = ::write(FD, Ptr, Size);
|
||||
|
||||
Reference in New Issue
Block a user