From 1d51996981048117548d59208f7cc9efb2cdaa7b Mon Sep 17 00:00:00 2001 From: Teemu Ollakka Date: Wed, 4 Sep 2019 15:00:57 +0300 Subject: [PATCH] Fixed unused variable warning. --- test/mock_high_priority_service.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/mock_high_priority_service.cpp b/test/mock_high_priority_service.cpp index 36ea1f7..57c230c 100644 --- a/test/mock_high_priority_service.cpp +++ b/test/mock_high_priority_service.cpp @@ -95,8 +95,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);