From 270f88758456b37338e170135f850eba91aaa271 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 25 Jan 2024 15:31:48 -0800 Subject: [PATCH] Annotate unused functions --- ConflictSet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;