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:
@ -25,7 +25,7 @@
|
||||
wsrep::mock_storage_service::mock_storage_service(
|
||||
wsrep::server_state& server_state,
|
||||
wsrep::client_id client_id)
|
||||
: client_service_(client_state_)
|
||||
: client_service_(&client_state_)
|
||||
, client_state_(server_state, client_service_, client_id,
|
||||
wsrep::client_state::m_high_priority)
|
||||
{
|
||||
|
Reference in New Issue
Block a user