mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
fixed some warnings
This commit is contained in:
@@ -47,6 +47,7 @@ namespace
|
|||||||
return envbuf;
|
return envbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(POCO_OS_FAMILY_VMS)
|
||||||
void setEnvironmentVariables(const Poco::Process::Env& env)
|
void setEnvironmentVariables(const Poco::Process::Env& env)
|
||||||
{
|
{
|
||||||
for (Poco::Process::Env::const_iterator it = env.begin(); it != env.end(); ++it)
|
for (Poco::Process::Env::const_iterator it = env.begin(); it != env.end(); ++it)
|
||||||
@@ -54,6 +55,7 @@ namespace
|
|||||||
Poco::Environment::set(it->first, it->second);
|
Poco::Environment::set(it->first, it->second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -151,7 +151,8 @@ int Socket::select(SocketList& readList, SocketList& writeList, SocketList& exce
|
|||||||
if (epollfd < 0)
|
if (epollfd < 0)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
strerror_r(errno, buf, sizeof(buf));
|
int rc = strerror_r(errno, buf, sizeof(buf));
|
||||||
|
poco_assert (rc == 0);
|
||||||
SocketImpl::error(std::string("Can't create epoll queue: ") + buf);
|
SocketImpl::error(std::string("Can't create epoll queue: ") + buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,7 +164,8 @@ int Socket::select(SocketList& readList, SocketList& writeList, SocketList& exce
|
|||||||
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, sockfd, e) < 0)
|
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, sockfd, e) < 0)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
strerror_r(errno, buf, sizeof(buf));
|
int rc = strerror_r(errno, buf, sizeof(buf));
|
||||||
|
poco_assert (rc == 0);
|
||||||
::close(epollfd);
|
::close(epollfd);
|
||||||
SocketImpl::error(std::string("Can't insert socket to epoll queue: ") + buf);
|
SocketImpl::error(std::string("Can't insert socket to epoll queue: ") + buf);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -403,7 +403,8 @@ bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
|
|||||||
if (epollfd < 0)
|
if (epollfd < 0)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
strerror_r(errno, buf, sizeof(buf));
|
int rc = strerror_r(errno, buf, sizeof(buf));
|
||||||
|
poco_assert (rc == 0);
|
||||||
error(std::string("Can't create epoll queue: ") + buf);
|
error(std::string("Can't create epoll queue: ") + buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -420,7 +421,8 @@ bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
|
|||||||
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, sockfd, &evin) < 0)
|
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, sockfd, &evin) < 0)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
strerror_r(errno, buf, sizeof(buf));
|
int rc = strerror_r(errno, buf, sizeof(buf));
|
||||||
|
poco_assert (rc == 0);
|
||||||
::close(epollfd);
|
::close(epollfd);
|
||||||
error(std::string("Can't insert socket to epoll queue: ") + buf);
|
error(std::string("Can't insert socket to epoll queue: ") + buf);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user