mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Fix -Winconsistent-missing-destructor-override warnings
This commit is contained in:
@ -53,7 +53,7 @@ namespace wsrep
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~default_condition_variable()
|
~default_condition_variable() WSREP_OVERRIDE
|
||||||
{
|
{
|
||||||
if (pthread_cond_destroy(&cond_))
|
if (pthread_cond_destroy(&cond_))
|
||||||
{
|
{
|
||||||
|
@ -58,7 +58,7 @@ namespace wsrep
|
|||||||
throw wsrep::runtime_error("mutex init failed");
|
throw wsrep::runtime_error("mutex init failed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
~default_mutex()
|
~default_mutex() WSREP_OVERRIDE
|
||||||
{
|
{
|
||||||
if (pthread_mutex_destroy(&mutex_)) ::abort();
|
if (pthread_mutex_destroy(&mutex_)) ::abort();
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ namespace wsrep
|
|||||||
: value_(value)
|
: value_(value)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
~option_value_string() {}
|
~option_value_string() WSREP_OVERRIDE {}
|
||||||
const char* as_string() const WSREP_OVERRIDE
|
const char* as_string() const WSREP_OVERRIDE
|
||||||
{
|
{
|
||||||
return value_.c_str();
|
return value_.c_str();
|
||||||
@ -90,7 +90,7 @@ namespace wsrep
|
|||||||
: value_(value)
|
: value_(value)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
~option_value_bool() {}
|
~option_value_bool() WSREP_OVERRIDE {}
|
||||||
const char* as_string() const WSREP_OVERRIDE
|
const char* as_string() const WSREP_OVERRIDE
|
||||||
{
|
{
|
||||||
if (value_)
|
if (value_)
|
||||||
@ -116,7 +116,7 @@ namespace wsrep
|
|||||||
, value_str_(std::to_string(value))
|
, value_str_(std::to_string(value))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
~option_value_int() {}
|
~option_value_int() WSREP_OVERRIDE {}
|
||||||
const char* as_string() const WSREP_OVERRIDE
|
const char* as_string() const WSREP_OVERRIDE
|
||||||
{
|
{
|
||||||
return value_str_.c_str();
|
return value_str_.c_str();
|
||||||
@ -136,7 +136,7 @@ namespace wsrep
|
|||||||
, value_str_(std::to_string(value))
|
, value_str_(std::to_string(value))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
~option_value_double() {}
|
~option_value_double() WSREP_OVERRIDE {}
|
||||||
const char* as_string() const WSREP_OVERRIDE
|
const char* as_string() const WSREP_OVERRIDE
|
||||||
{
|
{
|
||||||
return value_str_.c_str();
|
return value_str_.c_str();
|
||||||
|
@ -35,7 +35,7 @@ namespace wsrep
|
|||||||
wsrep_provider_v26(wsrep::server_state&, const std::string&,
|
wsrep_provider_v26(wsrep::server_state&, const std::string&,
|
||||||
const std::string&,
|
const std::string&,
|
||||||
const wsrep::provider::services& services);
|
const wsrep::provider::services& services);
|
||||||
~wsrep_provider_v26();
|
~wsrep_provider_v26() WSREP_OVERRIDE;
|
||||||
enum wsrep::provider::status
|
enum wsrep::provider::status
|
||||||
connect(const std::string&, const std::string&, const std::string&,
|
connect(const std::string&, const std::string&, const std::string&,
|
||||||
bool) WSREP_OVERRIDE;
|
bool) WSREP_OVERRIDE;
|
||||||
|
@ -42,7 +42,7 @@ namespace wsrep
|
|||||||
, mutex_()
|
, mutex_()
|
||||||
, cond_()
|
, cond_()
|
||||||
{ }
|
{ }
|
||||||
~mock_client_state()
|
~mock_client_state() WSREP_OVERRIDE
|
||||||
{
|
{
|
||||||
if (transaction().active())
|
if (transaction().active())
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ namespace wsrep
|
|||||||
, nbo_cs_()
|
, nbo_cs_()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
~mock_high_priority_service()
|
~mock_high_priority_service() WSREP_OVERRIDE
|
||||||
{ }
|
{ }
|
||||||
int start_transaction(const wsrep::ws_handle&, const wsrep::ws_meta&)
|
int start_transaction(const wsrep::ws_handle&, const wsrep::ws_meta&)
|
||||||
WSREP_OVERRIDE;
|
WSREP_OVERRIDE;
|
||||||
|
@ -30,7 +30,7 @@ class mock_server_state;
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
mock_storage_service(wsrep::server_state&, wsrep::client_id);
|
mock_storage_service(wsrep::server_state&, wsrep::client_id);
|
||||||
~mock_storage_service();
|
~mock_storage_service() WSREP_OVERRIDE;
|
||||||
|
|
||||||
int start_transaction(const wsrep::ws_handle&) WSREP_OVERRIDE;
|
int start_transaction(const wsrep::ws_handle&) WSREP_OVERRIDE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user