diff --git a/cpp/src/arrow/memory_pool.cc b/cpp/src/arrow/memory_pool.cc index 80da5c1313e19..34207781277d1 100644 --- a/cpp/src/arrow/memory_pool.cc +++ b/cpp/src/arrow/memory_pool.cc @@ -916,7 +916,7 @@ class PoolBuffer final : public ResizableBuffer { } private: - Result RoundCapacity(int64_t capacity) { + static Result RoundCapacity(int64_t capacity) { if (capacity > std::numeric_limits::max() - 63) { return Status::OutOfMemory("capacity too large"); }