0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 16:04:15 +01:00

modules/client/sync: Fix warnings for clang.

This commit is contained in:
Jason Volk 2020-02-11 15:58:46 -08:00
parent 9579325506
commit 58382af029

View file

@ -349,10 +349,10 @@ ircd::m::sync::handle_get(client &client,
}; };
if(complete) if(complete)
return response; return std::move(response);
if(longpoll_handle(data)) if(longpoll_handle(data))
return response; return std::move(response);
const auto &next_batch const auto &next_batch
{ {
@ -364,7 +364,7 @@ ircd::m::sync::handle_get(client &client,
// A user-timeout occurred. According to the spec we return a // A user-timeout occurred. According to the spec we return a
// 200 with empty fields rather than a 408. // 200 with empty fields rather than a 408.
empty_response(data, next_batch); empty_response(data, next_batch);
return response; return std::move(response);
} }
void void