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:
parent
613e309d7e
commit
6a5e7acee1
3 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
{
|
||||
|
|
12
ircd/net.cc
12
ircd/net.cc
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue