When compiling as a part of the project, I see this unattended type conversion:
$PROJECT_ROOT/build/_deps/curlpp-src/src/curlpp/internal/OptionSetter.cpp: In static member function ‘static size_t curlpp::internal::Callbacks::StreamReadCallback(char*, size_t, size_t, std::istream*)’:
$PROJECT_ROOT/build/_deps/curlpp-src/src/curlpp/internal/OptionSetter.cpp:78:49: error: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘std::streamsize’ {aka ‘long int’} may change the sign of the result [-Werror=sign-conversion]
78 | size_t realread = stream->gcount();
To remedy this, I would suggest to static_cast the gcount() result into the very size_t.
When compiling as a part of the project, I see this unattended type conversion:
To remedy this, I would suggest to
static_cast
thegcount()
result into the verysize_t
.