Disable "-Wsign-conversion" in older GCCs to avoid false positives

This commit is contained in:
Ion Gaztañaga
2022-08-24 14:27:47 +02:00
parent 3be89a2910
commit f92f8adafa
2 changed files with 13 additions and 0 deletions

View File

@ -48,3 +48,13 @@
#pragma warning (disable : 4996) // "function": was declared deprecated
#endif //BOOST_MSVC
#if defined(BOOST_GCC) && (BOOST_GCC >= 40600)
#pragma GCC diagnostic push
//Sign conversion warnings broken before GCC 9.3
//(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519)
#if BOOST_GCC < 90300
#pragma GCC diagnostic ignored "-Wsign-conversion"
#endif
#endif

View File

@ -11,3 +11,6 @@
#pragma warning (pop)
#endif
#if defined(BOOST_GCC) && (BOOST_GCC >= 40600)
#pragma GCC diagnostic pop
#endif