mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 05:54:28 +02:00
Disable "-Warray-bounds" for GCC12 due to false positives
This commit is contained in:
@@ -65,6 +65,13 @@
|
|||||||
#include <initializer_list> //for std::initializer_list
|
#include <initializer_list> //for std::initializer_list
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//GCC 12 has a regression for array-bounds warnings
|
||||||
|
#if defined(BOOST_GCC) && (BOOST_GCC >= 120000) && (BOOST_GCC < 130000)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace container {
|
namespace container {
|
||||||
|
|
||||||
@@ -3589,6 +3596,11 @@ inline std::size_t hash_value(basic_string<Ch, std::char_traits<Ch>, Allocator>
|
|||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
//GCC 12 has a regression for array-bounds warnings
|
||||||
|
#if defined(BOOST_GCC) && (BOOST_GCC >= 120000) && (BOOST_GCC < 130000)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
|
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user