mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +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_))
|
||||
{
|
||||
|
@ -58,7 +58,7 @@ namespace wsrep
|
||||
throw wsrep::runtime_error("mutex init failed");
|
||||
}
|
||||
}
|
||||
~default_mutex()
|
||||
~default_mutex() WSREP_OVERRIDE
|
||||
{
|
||||
if (pthread_mutex_destroy(&mutex_)) ::abort();
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ namespace wsrep
|
||||
: value_(value)
|
||||
{
|
||||
}
|
||||
~option_value_string() {}
|
||||
~option_value_string() WSREP_OVERRIDE {}
|
||||
const char* as_string() const WSREP_OVERRIDE
|
||||
{
|
||||
return value_.c_str();
|
||||
@ -90,7 +90,7 @@ namespace wsrep
|
||||
: value_(value)
|
||||
{
|
||||
}
|
||||
~option_value_bool() {}
|
||||
~option_value_bool() WSREP_OVERRIDE {}
|
||||
const char* as_string() const WSREP_OVERRIDE
|
||||
{
|
||||
if (value_)
|
||||
@ -116,7 +116,7 @@ namespace wsrep
|
||||
, value_str_(std::to_string(value))
|
||||
{
|
||||
}
|
||||
~option_value_int() {}
|
||||
~option_value_int() WSREP_OVERRIDE {}
|
||||
const char* as_string() const WSREP_OVERRIDE
|
||||
{
|
||||
return value_str_.c_str();
|
||||
@ -136,7 +136,7 @@ namespace wsrep
|
||||
, value_str_(std::to_string(value))
|
||||
{
|
||||
}
|
||||
~option_value_double() {}
|
||||
~option_value_double() WSREP_OVERRIDE {}
|
||||
const char* as_string() const WSREP_OVERRIDE
|
||||
{
|
||||
return value_str_.c_str();
|
||||
|
Reference in New Issue
Block a user