mirror of
https://github.com/boostorg/container.git
synced 2025-07-31 04:57:16 +02:00
Fixes #234 ("dlmalloc_ext_2_8_6.c⚠️ iteration 2305843009213693951 invokes undefined behavior")
This commit is contained in:
@ -1425,6 +1425,7 @@ use [*Boost.Container]? There are several reasons for that:
|
|||||||
|
|
||||||
* Fixed bugs/issues:
|
* Fixed bugs/issues:
|
||||||
* [@https://github.com/boostorg/container/issues/297 GitHub #297: ['"flat_map::try_emplace does not compile if allocator has construct"]].
|
* [@https://github.com/boostorg/container/issues/297 GitHub #297: ['"flat_map::try_emplace does not compile if allocator has construct"]].
|
||||||
|
* [@https://github.com/boostorg/container/issues/234 GitHub #234: ['"dlmalloc_ext_2_8_6.c:warning: iteration 2305843009213693951 invokes undefined behavior"]].
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
@ -36,6 +36,8 @@
|
|||||||
#define FORCEINLINE inline
|
#define FORCEINLINE inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define DLMALLOC_EXT_GCC_VERSION
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning (push)
|
#pragma warning (push)
|
||||||
#pragma warning (disable : 4127)
|
#pragma warning (disable : 4127)
|
||||||
@ -47,6 +49,18 @@
|
|||||||
#pragma warning (disable : 4057) /*differs in indirection to slightly different base types from*/
|
#pragma warning (disable : 4057) /*differs in indirection to slightly different base types from*/
|
||||||
#pragma warning (disable : 4702) /*unreachable code*/
|
#pragma warning (disable : 4702) /*unreachable code*/
|
||||||
#pragma warning (disable : 4127) /*conditional expression is constant*/
|
#pragma warning (disable : 4127) /*conditional expression is constant*/
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
|
||||||
|
# if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 48000)
|
||||||
|
//Disable false positives triggered by -Waggressive-loop-optimizations
|
||||||
|
# pragma GCC diagnostic ignored "-Waggressive-loop-optimizations"
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 46000)
|
||||||
|
//Disable false positives triggered by -Warray-bounds
|
||||||
|
# pragma GCC diagnostic ignored "-Warray-bounds"
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "dlmalloc_2_8_6.c"
|
#include "dlmalloc_2_8_6.c"
|
||||||
|
Reference in New Issue
Block a user