Skip to content

Commit 626c0b7

Browse files
committed
Fix -Winconsistent-missing-destructor-override warnings
1 parent 66a8fa9 commit 626c0b7

7 files changed

+10
-10
lines changed

include/wsrep/condition_variable.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace wsrep
5353
}
5454
}
5555

56-
~default_condition_variable()
56+
~default_condition_variable() WSREP_OVERRIDE
5757
{
5858
if (pthread_cond_destroy(&cond_))
5959
{

include/wsrep/mutex.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace wsrep
5858
throw wsrep::runtime_error("mutex init failed");
5959
}
6060
}
61-
~default_mutex()
61+
~default_mutex() WSREP_OVERRIDE
6262
{
6363
if (pthread_mutex_destroy(&mutex_)) ::abort();
6464
}

include/wsrep/provider_options.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace wsrep
6969
: value_(value)
7070
{
7171
}
72-
~option_value_string() {}
72+
~option_value_string() WSREP_OVERRIDE {}
7373
const char* as_string() const WSREP_OVERRIDE
7474
{
7575
return value_.c_str();
@@ -90,7 +90,7 @@ namespace wsrep
9090
: value_(value)
9191
{
9292
}
93-
~option_value_bool() {}
93+
~option_value_bool() WSREP_OVERRIDE {}
9494
const char* as_string() const WSREP_OVERRIDE
9595
{
9696
if (value_)
@@ -116,7 +116,7 @@ namespace wsrep
116116
, value_str_(std::to_string(value))
117117
{
118118
}
119-
~option_value_int() {}
119+
~option_value_int() WSREP_OVERRIDE {}
120120
const char* as_string() const WSREP_OVERRIDE
121121
{
122122
return value_str_.c_str();
@@ -136,7 +136,7 @@ namespace wsrep
136136
, value_str_(std::to_string(value))
137137
{
138138
}
139-
~option_value_double() {}
139+
~option_value_double() WSREP_OVERRIDE {}
140140
const char* as_string() const WSREP_OVERRIDE
141141
{
142142
return value_str_.c_str();

src/wsrep_provider_v26.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace wsrep
3535
wsrep_provider_v26(wsrep::server_state&, const std::string&,
3636
const std::string&,
3737
const wsrep::provider::services& services);
38-
~wsrep_provider_v26();
38+
~wsrep_provider_v26() WSREP_OVERRIDE;
3939
enum wsrep::provider::status
4040
connect(const std::string&, const std::string&, const std::string&,
4141
bool) WSREP_OVERRIDE;

test/mock_client_state.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace wsrep
4242
, mutex_()
4343
, cond_()
4444
{ }
45-
~mock_client_state()
45+
~mock_client_state() WSREP_OVERRIDE
4646
{
4747
if (transaction().active())
4848
{

test/mock_high_priority_service.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace wsrep
4343
, nbo_cs_()
4444
{ }
4545

46-
~mock_high_priority_service()
46+
~mock_high_priority_service() WSREP_OVERRIDE
4747
{ }
4848
int start_transaction(const wsrep::ws_handle&, const wsrep::ws_meta&)
4949
WSREP_OVERRIDE;

test/mock_storage_service.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class mock_server_state;
3030
{
3131
public:
3232
mock_storage_service(wsrep::server_state&, wsrep::client_id);
33-
~mock_storage_service();
33+
~mock_storage_service() WSREP_OVERRIDE;
3434

3535
int start_transaction(const wsrep::ws_handle&) WSREP_OVERRIDE;
3636

0 commit comments

Comments
 (0)