Changed 'maybe_unused' to 'gnu::unused'.
Reviewers: teon.banek, mislav.bradac Reviewed By: mislav.bradac Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D843
This commit is contained in:
parent
7dedb88449
commit
b76a5f8c79
@ -74,7 +74,7 @@ void GraphDbAccessor::BuildIndex(const GraphDbTypes::Label &label,
|
|||||||
// on function exit switch the build_in_progress to false
|
// on function exit switch the build_in_progress to false
|
||||||
utils::OnScopeExit on_exit([this] {
|
utils::OnScopeExit on_exit([this] {
|
||||||
bool expected = true;
|
bool expected = true;
|
||||||
[[maybe_unused]] bool success =
|
[[gnu::unused]] bool success =
|
||||||
db_.index_build_in_progress_.compare_exchange_strong(expected, false);
|
db_.index_build_in_progress_.compare_exchange_strong(expected, false);
|
||||||
debug_assert(success, "BuildIndexInProgress flag was not set during build");
|
debug_assert(success, "BuildIndexInProgress flag was not set during build");
|
||||||
});
|
});
|
||||||
|
@ -155,7 +155,7 @@ static void Refresh(
|
|||||||
indices_entries_accessor.insert(
|
indices_entries_accessor.insert(
|
||||||
TIndexEntry(indices_entry, new_record));
|
TIndexEntry(indices_entry, new_record));
|
||||||
|
|
||||||
[[maybe_unused]] auto success =
|
[[gnu::unused]] auto success =
|
||||||
indices_entries_accessor.remove(indices_entry);
|
indices_entries_accessor.remove(indices_entry);
|
||||||
debug_assert(success, "Unable to delete entry.");
|
debug_assert(success, "Unable to delete entry.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user