From 4e3146c61ff1fe1de869dff1784a6885fbaed63f Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Wed, 7 Aug 2024 14:21:06 +0000 Subject: [PATCH] test/common/test_hobject: fmt fixes Signed-off-by: Matan Breizman --- src/test/common/test_hobject.cc | 4 ++-- src/test/crimson/test_socket.cc | 1 + src/test/crush/crush.cc | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/common/test_hobject.cc b/src/test/common/test_hobject.cc index d9600c83e1a..9f994cb7d95 100644 --- a/src/test/common/test_hobject.cc +++ b/src/test/common/test_hobject.cc @@ -201,10 +201,10 @@ namespace fmt { template <> struct formatter { - auto parse(format_parse_context& ctx) { return ctx.begin(); } + constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); } template - auto format(const test_hobject_fmt_t& ho, FormatContext& ctx) + auto format(const test_hobject_fmt_t& ho, FormatContext& ctx) const { if (ho == hobject_t{}) { return fmt::format_to(ctx.out(), "MIN"); diff --git a/src/test/crimson/test_socket.cc b/src/test/crimson/test_socket.cc index fb9d60993ed..ec8ac0219d8 100644 --- a/src/test/crimson/test_socket.cc +++ b/src/test/crimson/test_socket.cc @@ -3,6 +3,7 @@ #include "common/ceph_argparse.h" #include +#include #include #include #include diff --git a/src/test/crush/crush.cc b/src/test/crush/crush.cc index c9f670a9e32..9d5667d9587 100644 --- a/src/test/crush/crush.cc +++ b/src/test/crush/crush.cc @@ -12,6 +12,7 @@ #include #include #include +#include #include "common/ceph_argparse.h" #include "common/common_init.h" -- 2.39.5