1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-22 23:21:53 +03:00

Fixed unused variable warning.

This commit is contained in:
Teemu Ollakka
2019-09-04 15:00:57 +03:00
parent 0683654e53
commit b46f89f4ce

View File

@ -101,8 +101,9 @@ int wsrep::mock_high_priority_service::apply_nbo_begin(
const wsrep::const_buffer&,
wsrep::mutable_buffer&)
{
const int nbo_begin_flags(wsrep::provider::flag::isolation |
wsrep::provider::flag::start_transaction);
const int nbo_begin_flags __attribute__((unused))
(wsrep::provider::flag::isolation |
wsrep::provider::flag::start_transaction);
assert(ws_meta.flags() & nbo_begin_flags);
assert((ws_meta.flags() & ~nbo_begin_flags) == 0);