diff --git a/src/ox/ptrarith/nodebuffer.hpp b/src/ox/ptrarith/nodebuffer.hpp index 4f7dc3c1b..ff80fc355 100644 --- a/src/ox/ptrarith/nodebuffer.hpp +++ b/src/ox/ptrarith/nodebuffer.hpp @@ -150,7 +150,7 @@ class __attribute__((packed)) NodeBuffer { size_t spaceNeeded(size_t size); template - ox::Error compact(F cb = [](uint64_t, ItemPtr) {}); + [[nodiscard]] ox::Error compact(F cb = [](uint64_t, ItemPtr) {}); void truncate();