#3302: MSVC: Poco hides warnings (C4996) for the C++14 attribute [[deprecated]]

This commit is contained in:
Günter Obiltschnig
2021-06-17 18:20:29 +02:00
parent 2740068e59
commit 22eb76d3ae
21 changed files with 104 additions and 7 deletions

View File

@@ -41,13 +41,13 @@ RedisStreamBuf::~RedisStreamBuf()
int RedisStreamBuf::readFromDevice(char* buffer, std::streamsize len)
{
return _redis.receiveBytes(buffer, len);
return _redis.receiveBytes(buffer, static_cast<int>(len));
}
int RedisStreamBuf::writeToDevice(const char* buffer, std::streamsize length)
{
return _redis.sendBytes(buffer, length);
return _redis.sendBytes(buffer, static_cast<int>(length));
}