Skip to content

Commit

Permalink
Fix -Wmaybe-uninitialized warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskohlhoff committed Jul 5, 2022
1 parent eb8c4f0 commit 2e10c19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void reactive_descriptor_service::construct(
{
impl.descriptor_ = -1;
impl.state_ = 0;
impl.reactor_data_ = reactor::per_descriptor_data();
}

void reactive_descriptor_service::move_construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void reactive_socket_service_base::construct(
{
impl.socket_ = invalid_socket;
impl.state_ = 0;
impl.reactor_data_ = reactor::per_descriptor_data();
}

void reactive_socket_service_base::base_move_construct(
Expand Down

0 comments on commit 2e10c19

Please sign in to comment.