fix: Resolve compiler warnings across multiple modules

This commit is contained in:
Matej Kenda
2025-12-17 14:04:42 +01:00
parent b79b07c308
commit 7addcfbc81
80 changed files with 324 additions and 315 deletions

View File

@@ -44,14 +44,14 @@ MultipartStreamBuf::~MultipartStreamBuf()
}
int MultipartStreamBuf::readFromDevice(char* buffer, std::streamsize length)
std::streamsize MultipartStreamBuf::readFromDevice(char* buffer, std::streamsize length)
{
poco_assert (!_boundary.empty() && _boundary.length() < length - 6);
poco_assert (!_boundary.empty() && _boundary.length() < static_cast<std::size_t>(length - 6));
static const int eof = std::char_traits<char>::eof();
std::streambuf& buf = *_istr.rdbuf();
int n = 0;
std::streamsize n = 0;
int ch = buf.sbumpc();
if (ch == eof) return -1;
*buffer++ = (char) ch; ++n;