mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 05:24:31 +02:00
Disable "-Wsign-conversion" in older GCCs to avoid false positives
This commit is contained in:
@@ -48,3 +48,13 @@
|
|||||||
#pragma warning (disable : 4996) // "function": was declared deprecated
|
#pragma warning (disable : 4996) // "function": was declared deprecated
|
||||||
|
|
||||||
#endif //BOOST_MSVC
|
#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
|
||||||
|
@@ -11,3 +11,6 @@
|
|||||||
#pragma warning (pop)
|
#pragma warning (pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(BOOST_GCC) && (BOOST_GCC >= 40600)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user