1
0
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:
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_))
{

View File

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

View File

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