Annotate unused functions
This commit is contained in:
@@ -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)) {}
|
: impl(std::exchange(other.impl, nullptr)) {}
|
||||||
Arena &Arena::operator=(Arena &&other) noexcept {
|
[[maybe_unused]] Arena &Arena::operator=(Arena &&other) noexcept {
|
||||||
onDestroy(impl);
|
onDestroy(impl);
|
||||||
impl = std::exchange(other.impl, nullptr);
|
impl = std::exchange(other.impl, nullptr);
|
||||||
return *this;
|
return *this;
|
||||||
|
Reference in New Issue
Block a user