mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-13 13:17:07 +00:00
WaE: -Werror=unused-parameter
Change-Id: Icadfcb19ce1fff2b5009d42acf33297cda6e36f2
This commit is contained in:
@ -370,7 +370,7 @@ int fakeSocketConnect(int fd1, int fd2)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int fakeSocketAccept4(int fd, int flags)
|
int fakeSocketAccept4(int fd)
|
||||||
{
|
{
|
||||||
std::vector<FakeSocketPair>& fds = getFds();
|
std::vector<FakeSocketPair>& fds = getFds();
|
||||||
std::unique_lock<std::mutex> lock(theMutex);
|
std::unique_lock<std::mutex> lock(theMutex);
|
||||||
|
@ -34,7 +34,7 @@ int fakeSocketListen(int fd);
|
|||||||
|
|
||||||
int fakeSocketConnect(int fd1, int fd2);
|
int fakeSocketConnect(int fd1, int fd2);
|
||||||
|
|
||||||
int fakeSocketAccept4(int fd, int flags);
|
int fakeSocketAccept4(int fd);
|
||||||
|
|
||||||
int fakeSocketPeer(int fd);
|
int fakeSocketPeer(int fd);
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ public:
|
|||||||
socklen_t addrlen = sizeof(clientInfo);
|
socklen_t addrlen = sizeof(clientInfo);
|
||||||
const int rc = ::accept4(getFD(), (struct sockaddr *)&clientInfo, &addrlen, SOCK_NONBLOCK);
|
const int rc = ::accept4(getFD(), (struct sockaddr *)&clientInfo, &addrlen, SOCK_NONBLOCK);
|
||||||
#else
|
#else
|
||||||
const int rc = fakeSocketAccept4(getFD(), SOCK_NONBLOCK);
|
const int rc = fakeSocketAccept4(getFD());
|
||||||
#endif
|
#endif
|
||||||
LOG_DBG("Accepted socket #" << rc << ", creating socket object.");
|
LOG_DBG("Accepted socket #" << rc << ", creating socket object.");
|
||||||
try
|
try
|
||||||
|
@ -102,8 +102,8 @@ void FakeSocketTest::testBasic()
|
|||||||
std::thread t0([&] {
|
std::thread t0([&] {
|
||||||
// Cannot use CPPUNIT_ASSERT here as that throws and this thread has no Cppunit
|
// Cannot use CPPUNIT_ASSERT here as that throws and this thread has no Cppunit
|
||||||
// exception handler. We check below after joining this thread.
|
// exception handler. We check below after joining this thread.
|
||||||
s3 = fakeSocketAccept4(s0, 0);
|
s3 = fakeSocketAccept4(s0);
|
||||||
s4 = fakeSocketAccept4(s0, 0);
|
s4 = fakeSocketAccept4(s0);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Connect s1 and s2 to s0 (that is, to the sockets produced by accepting connections to
|
// Connect s1 and s2 to s0 (that is, to the sockets produced by accepting connections to
|
||||||
|
Reference in New Issue
Block a user