mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +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:
@ -108,7 +108,6 @@ wsrep::view db::storage_engine::get_view() const
|
||||
|
||||
void db::storage_engine::validate_position(const wsrep::gtid& gtid) const
|
||||
{
|
||||
using std::rel_ops::operator<=;
|
||||
if (position_.id() == gtid.id() && gtid.seqno() <= position_.seqno())
|
||||
{
|
||||
std::ostringstream os;
|
||||
|
@ -22,10 +22,12 @@
|
||||
#include "wsrep/logger.hpp"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <pthread.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
#include <array>
|
||||
#include <chrono>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
|
Reference in New Issue
Block a user