mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 05:54:28 +02:00
Disable "-Wmaybe-uninitialized" for false positives in the core section
This commit is contained in:
@@ -65,7 +65,6 @@
|
|||||||
#include <initializer_list> //for std::initializer_list
|
#include <initializer_list> //for std::initializer_list
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace container {
|
namespace container {
|
||||||
|
|
||||||
@@ -131,6 +130,11 @@ class basic_string_base
|
|||||||
|
|
||||||
private:
|
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
|
//This is the structure controlling a long string
|
||||||
struct long_t
|
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
|
//This type is the first part of the structure controlling a short string
|
||||||
//The "data" member stores
|
//The "data" member stores
|
||||||
struct short_header
|
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
|
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
Reference in New Issue
Block a user