0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

ircd::lex: Explicit uninitialized initialization for -Wmaybe-unitialized (gcc-12).

ircd::net: Explicit uninitialized initialization for -Wmaybe-unitialized (gcc-12).
This commit is contained in:
Jason Volk 2022-07-04 14:16:18 -07:00
parent 613e309d7e
commit 6a5e7acee1
3 changed files with 11 additions and 6 deletions

View file

@ -141,7 +141,7 @@ inline T
ircd::lex::cast(const string_view &s)
try
{
T ret;
T ret {};
const char *start(begin(s)), *const stop(end(s));
const bool pass
{

View file

@ -1748,7 +1748,8 @@ try
this->cancel();
}};
size_t ret; continuation
size_t ret{};
continuation
{
continuation::asio_predicate, interruption, [this, &ret, &bufs]
(auto &yield)
@ -1787,7 +1788,8 @@ try
this->cancel();
}};
size_t ret; continuation
size_t ret{};
continuation
{
continuation::asio_predicate, interruption, [this, &ret, &bufs]
(auto &yield)
@ -1893,7 +1895,8 @@ try
this->cancel();
}};
size_t ret; continuation
size_t ret{};
continuation
{
continuation::asio_predicate, interruption, [this, &ret, &bufs]
(auto &yield)
@ -1927,7 +1930,8 @@ try
this->cancel();
}};
size_t ret; continuation
size_t ret{};
continuation
{
continuation::asio_predicate, interruption, [this, &ret, &bufs]
(auto &yield)

View file

@ -205,7 +205,8 @@ ircd::net::acceptor_udp::operator()(datagram &datagram)
};
ip::udp::endpoint ep;
size_t rlen; continuation
size_t rlen{};
continuation
{
continuation::asio_predicate, interruption, [this, &rlen, &datagram, &ep, &flags]
(auto &yield)