From 5f05b1c4356d7d82ee5531922ed5269aa9b21832 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 1dadf092..58b6c381 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'); @@ -616,6 +618,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(); }