From 4e78beebeba569508e6de9c94c114855a3119882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=D1=91pa=20Dolgorukov?= Date: Fri, 25 Oct 2024 21:06:21 +0500 Subject: [PATCH] unit_tests: repair compilation on the G++ 12 compiler (#473) --- tests/unit_tests/serialization.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp index bd53b009..fd0807b5 100644 --- a/tests/unit_tests/serialization.cpp +++ b/tests/unit_tests/serialization.cpp @@ -26,10 +26,12 @@ struct Struct char blob[8]; }; - -std::ostream& operator <<(std::ostream& o, const currency::signature_v& v) +namespace currency { - return o; + ostream& operator<<(ostream& stream, [[maybe_unused]] const currency::signature_v& signature) + { + return stream; + } } template @@ -902,4 +904,4 @@ TEST(Serialization, versioning2) r = perform_test_ser_vers(a_3); ASSERT_TRUE(r); -} \ No newline at end of file +}