1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Work around GCC 12 warning of uninitialized use

Use pointers to pass state objects to service constructors
to work around GCC 12 warning

  error: member ‘wsrep::mock_storage_service::client_state_’
  is used uninitialized
This commit is contained in:
Teemu Ollakka
2023-02-26 10:31:07 +02:00
parent 9e8708af7e
commit 3b3429d8df
10 changed files with 46 additions and 42 deletions

View File

@ -165,7 +165,7 @@ namespace wsrep
void cleanup();
private:
void check_fragment_seqno(wsrep::seqno seqno WSREP_UNUSED);
void check_fragment_seqno(wsrep::seqno seqno);
size_t fragments_certified_;
std::vector<wsrep::seqno> fragments_;