Skip to content

Commit 98e6d5c

Browse files
[lldb] Fix warnings
This patch fixes: lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp:279:15: error: format specifies type 'unsigned long' but the argument has type 'file_t' (aka 'int') [-Werror,-Wformat] lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp:383:15: error: format specifies type 'unsigned long' but the argument has type 'file_t' (aka 'int') [-Werror,-Wformat]
1 parent d79c284 commit 98e6d5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ size_t ConnectionFileDescriptor::Read(void *dst, size_t dst_len,
276276
"%p ConnectionFileDescriptor::Read() fd = %" PRIu64
277277
", dst = %p, dst_len = %" PRIu64 ") => %" PRIu64 ", error = %s",
278278
static_cast<void *>(this),
279-
static_cast<file_t>(m_io_sp->GetWaitableHandle()),
279+
static_cast<uint64_t>(m_io_sp->GetWaitableHandle()),
280280
static_cast<void *>(dst), static_cast<uint64_t>(dst_len),
281281
static_cast<uint64_t>(bytes_read), error.AsCString());
282282
}
@@ -380,7 +380,7 @@ size_t ConnectionFileDescriptor::Write(const void *src, size_t src_len,
380380
"%p ConnectionFileDescriptor::Write(fd = %" PRIu64
381381
", src = %p, src_len = %" PRIu64 ") => %" PRIu64 " (error = %s)",
382382
static_cast<void *>(this),
383-
static_cast<file_t>(m_io_sp->GetWaitableHandle()),
383+
static_cast<uint64_t>(m_io_sp->GetWaitableHandle()),
384384
static_cast<const void *>(src), static_cast<uint64_t>(src_len),
385385
static_cast<uint64_t>(bytes_sent), error.AsCString());
386386
}

0 commit comments

Comments
 (0)