mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-05 03:41:13 +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:
@ -26,7 +26,7 @@ namespace
|
||||
struct server_fixture_base
|
||||
{
|
||||
server_fixture_base()
|
||||
: server_service(ss)
|
||||
: server_service(&ss)
|
||||
, ss("s1",
|
||||
wsrep::server_state::rm_sync, server_service)
|
||||
, cc(ss,
|
||||
|
Reference in New Issue
Block a user