From 8b31acf9a40b55df4616aed505a03aed338be94c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 10 Apr 2024 22:25:11 +0300 Subject: [PATCH] Disable -Wsign-conversion in lightweight_test.hpp for GCC 6/7 --- include/boost/core/lightweight_test.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index c09ce87..43baea0 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -153,6 +153,7 @@ inline void no_throw_failed_impl(const char* expr, const char* what, const char* #elif defined(__GNUC__) && !(defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wsign-compare" +# pragma GCC diagnostic ignored "-Wsign-conversion" #endif // specialize test output for char pointers to avoid printing as cstring