Annotate unused functions

This commit is contained in:
2024-01-25 15:31:48 -08:00
parent e8f52ee34b
commit 270f887584

View File

@@ -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;