mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
GH #481: 2 warnings during Poco compile
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
typedef Var* pointer;
|
||||
typedef Var& reference;
|
||||
|
||||
static const int POSITION_END;
|
||||
static const std::size_t POSITION_END;
|
||||
/// End position indicator.
|
||||
|
||||
VarIterator(Var* pVar, bool positionEnd);
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Poco {
|
||||
namespace Dynamic {
|
||||
|
||||
|
||||
const int VarIterator::POSITION_END = std::numeric_limits<std::size_t>::max();
|
||||
const std::size_t VarIterator::POSITION_END = std::numeric_limits<std::size_t>::max();
|
||||
|
||||
|
||||
VarIterator::VarIterator(Var* pVar, bool positionEnd):
|
||||
|
||||
@@ -1569,7 +1569,7 @@ NetworkInterface::Map NetworkInterface::map(bool ipOnly, bool upOnly)
|
||||
setInterfaceParams(iface, intf.impl());
|
||||
|
||||
if ((ifIt == result.end()) && ((upOnly && intf.isUp()) || !upOnly))
|
||||
result.insert(Map::value_type(ifIndex, intf)).first;
|
||||
result.insert(Map::value_type(ifIndex, intf));
|
||||
|
||||
address = IPAddress(&reinterpret_cast<const struct sockaddr_in6*>(iface->ifa_addr)->sin6_addr, sizeof(struct in6_addr), ifIndex);
|
||||
subnetMask = IPAddress(*(iface->ifa_netmask));
|
||||
|
||||
Reference in New Issue
Block a user