1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Refs codership/wsrep-lib#18 Fix compile warning

Fixes unused parameter `view` in server_state::go_final() when
compiled without assert()s.
This commit is contained in:
Daniele Sciascia
2018-11-24 13:42:53 +01:00
parent 3950ea3027
commit 31f09ca4aa

View File

@ -638,6 +638,7 @@ void wsrep::server_state::go_final(wsrep::unique_lock<wsrep::mutex>& lock,
const wsrep::view& view,
wsrep::high_priority_service* hps)
{
(void)view; // avoid compiler warning "unused parameter 'view'"
assert(view.final());
assert(hps);
if (hps)