From 6738b987be4db7923c070535df356cc9d20b8280 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Mon, 27 May 2024 20:44:59 +0800 Subject: [PATCH] fix --- test/test_pb.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_pb.cpp b/test/test_pb.cpp index f1061801..b83c2be3 100644 --- a/test/test_pb.cpp +++ b/test/test_pb.cpp @@ -6,6 +6,8 @@ #include "iguana/pb_reader.hpp" #include "iguana/pb_writer.hpp" +#if defined(__clang__) || defined(_MSC_VER) || \ + (defined(__GNUC__) && __GNUC__ > 8) void print_hex_str(const std::string &str) { std::ostringstream oss; oss << std::hex << std::setfill('0'); @@ -623,6 +625,7 @@ TEST_CASE("test variant") { CHECK(std::get(st2.y) == 3.88); } } +#endif DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4007) int main(int argc, char **argv) { return doctest::Context(argc, argv).run(); }