File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1425,6 +1425,7 @@ use [*Boost.Container]? There are several reasons for that:
1425
1425
1426
1426
* Fixed bugs/issues:
1427
1427
* [@https://github.com/boostorg/container/issues/297 GitHub #297: ['"flat_map::try_emplace does not compile if allocator has construct"]].
1428
+ * [@https://github.com/boostorg/container/issues/234 GitHub #234: ['"dlmalloc_ext_2_8_6.c:warning: iteration 2305843009213693951 invokes undefined behavior"]].
1428
1429
1429
1430
[endsect]
1430
1431
Original file line number Diff line number Diff line change 36
36
#define FORCEINLINE inline
37
37
#endif
38
38
39
+ #define DLMALLOC_EXT_GCC_VERSION
40
+
39
41
#ifdef _MSC_VER
40
42
#pragma warning (push)
41
43
#pragma warning (disable : 4127)
47
49
#pragma warning (disable : 4057) /*differs in indirection to slightly different base types from*/
48
50
#pragma warning (disable : 4702) /*unreachable code*/
49
51
#pragma warning (disable : 4127) /*conditional expression is constant*/
52
+ #elif defined(__GNUC__)
53
+
54
+ # if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ ) >= 48000 )
55
+ //Disable false positives triggered by -Waggressive-loop-optimizations
56
+ # pragma GCC diagnostic ignored "-Waggressive-loop-optimizations"
57
+ # endif
58
+
59
+ # if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ ) >= 46000 )
60
+ //Disable false positives triggered by -Warray-bounds
61
+ # pragma GCC diagnostic ignored "-Warray-bounds"
62
+ # endif
63
+
50
64
#endif
51
65
52
66
#include "dlmalloc_2_8_6.c"
You can’t perform that action at this time.
0 commit comments