From 3c90e4d4e3441dc27ac4c69de07e407baa02051b Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 25 Jul 2019 20:05:00 -0500 Subject: [PATCH] [ox/ptrarith] Add nodiscard to Error return of NodeBuffer::compact (synced from c87e92da71c3ffd523def953dcc592f6fd0ef6a0) --- src/ox/ptrarith/nodebuffer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();