This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new d2334cd7a [io] Fix warnings during compilation.
d2334cd7a is described below

commit d2334cd7a03467a80f791c30ebd0430563af5cb1
Author: Jason Zhou <[email protected]>
AuthorDate: Thu Aug 22 19:14:57 2024 -0400

    [io] Fix warnings during compilation.
    
    Currently we have a warning that occurs on compilation about comparison
    between unsigned long and long. We update the tests to suppress this
    warning.
    
    Review: https://reviews.apache.org/r/75187/
---
 3rdparty/libprocess/src/tests/io_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3rdparty/libprocess/src/tests/io_tests.cpp 
b/3rdparty/libprocess/src/tests/io_tests.cpp
index 70ab7236e..125e61f5e 100644
--- a/3rdparty/libprocess/src/tests/io_tests.cpp
+++ b/3rdparty/libprocess/src/tests/io_tests.cpp
@@ -143,7 +143,7 @@ TEST_F(IOTest, PollWrite)
   // until the reader reads at least a page of data.
   size_t size = os::pagesize();
   std::unique_ptr<char[]> buffer(new char[size]);
-  ASSERT_EQ(size, ::read(pipes[0], buffer.get(), size));
+  ASSERT_EQ(size, (unsigned long)::read(pipes[0], buffer.get(), size));
 
   AWAIT_EXPECT_EQ(io::WRITE, future);
 

Reply via email to