1
0
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:
Teemu Ollakka
2023-03-30 13:28:55 +03:00
parent 66a8fa9b13
commit 626c0b7b3b
7 changed files with 10 additions and 10 deletions

View File

@ -53,7 +53,7 @@ namespace wsrep
} }
} }
~default_condition_variable() ~default_condition_variable() WSREP_OVERRIDE
{ {
if (pthread_cond_destroy(&cond_)) if (pthread_cond_destroy(&cond_))
{ {

View File

@ -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();
} }

View File

@ -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();

View File

@ -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;

View File

@ -42,7 +42,7 @@ namespace wsrep
, mutex_() , mutex_()
, cond_() , cond_()
{ } { }
~mock_client_state() ~mock_client_state() WSREP_OVERRIDE
{ {
if (transaction().active()) if (transaction().active())
{ {

View File

@ -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;

View File

@ -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;