mirror of
https://github.com/boostorg/container.git
synced 2025-07-31 13:07:17 +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
|
||||
#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 {
|
||||
|
Reference in New Issue
Block a user