Disable "-Wmaybe-uninitialized" for false positives in the core section

This commit is contained in:
Ion Gaztañaga
2022-08-24 14:26:52 +02:00
parent c63fc4e17f
commit 3be89a2910

View File

@ -65,7 +65,6 @@
#include <initializer_list> //for std::initializer_list
#endif
namespace boost {
namespace container {
@ -131,6 +130,11 @@ class basic_string_base
private:
#if defined(BOOST_GCC) && (BOOST_GCC >= 40600)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
//This is the structure controlling a long string
struct long_t
{
@ -164,6 +168,11 @@ class basic_string_base
}
};
#if defined(BOOST_GCC) && (BOOST_GCC >= 40600)
#pragma GCC diagnostic pop
#endif
//This type is the first part of the structure controlling a short string
//The "data" member stores
struct short_header
@ -3580,6 +3589,7 @@ inline std::size_t hash_value(basic_string<Ch, std::char_traits<Ch>, Allocator>
}}
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
namespace boost {