diff --git a/ConflictSet.cpp b/ConflictSet.cpp index c5e8053..386b895 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -122,9 +122,9 @@ void onDestroy(Arena::ArenaImpl *impl) { } } -Arena::Arena(Arena &&other) noexcept +[[maybe_unused]] Arena::Arena(Arena &&other) noexcept : impl(std::exchange(other.impl, nullptr)) {} -Arena &Arena::operator=(Arena &&other) noexcept { +[[maybe_unused]] Arena &Arena::operator=(Arena &&other) noexcept { onDestroy(impl); impl = std::exchange(other.impl, nullptr); return *this;