Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be nice to older (less clever) compiler versions #1528

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/XrdCl/XrdClFileStateHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ namespace XrdCl
uint32_t fstpglen = fLen;

time_t start = ::time( nullptr );
auto h = ResponseHandler::Wrap( [=]( auto* s, auto* r ) mutable
auto h = ResponseHandler::Wrap( [=]( XrdCl::XRootDStatus *s, XrdCl::AnyObject *r ) mutable
{
std::unique_ptr<AnyObject> scoped( r );
// if the request failed simply pass the status to the
Expand Down Expand Up @@ -1481,7 +1481,7 @@ namespace XrdCl
uint32_t pglen = std::get<1>( tpl );
const void *pgbuf = static_cast<const char*>( buffer ) + ( pgoff - offset );
uint32_t pgdigest = cksums[pgwrt_t::GetPgNb( pgoff, offset, fstpglen )];
auto h = ResponseHandler::Wrap( [=]( auto *s, auto *r ) mutable
auto h = ResponseHandler::Wrap( [=]( XrdCl::XRootDStatus *s, XrdCl::AnyObject *r ) mutable
{
std::unique_ptr<AnyObject> scoped( r );
// if we failed simply set the status
Expand Down