Fixes #186 ("Warnings out the wazoo")

This commit is contained in:
Ion Gaztañaga
2021-08-09 00:59:57 +02:00
parent 1cc35bbc98
commit bfbab6ed7f
2 changed files with 6 additions and 1 deletions

View File

@@ -1341,6 +1341,7 @@ use [*Boost.Container]? There are several reasons for that:
[section:release_notes_boost_1_78_00 Boost 1.78 Release] [section:release_notes_boost_1_78_00 Boost 1.78 Release]
* Fixed bugs/issues: * Fixed bugs/issues:
* [@https://github.com/boostorg/container/issues/186 GitHub #186: ['"Warnings out the wazoo"]].
* [@https://github.com/boostorg/container/issues/187 GitHub #187: ['"flat_map::erase and unique keys"]]. * [@https://github.com/boostorg/container/issues/187 GitHub #187: ['"flat_map::erase and unique keys"]].
* [@https://github.com/boostorg/container/issues/188 GitHub #188: ['"Build fails when RTTI is disabled"]]. * [@https://github.com/boostorg/container/issues/188 GitHub #188: ['"Build fails when RTTI is disabled"]].

View File

@@ -35,7 +35,6 @@
#ifdef __GNUC__ #ifdef __GNUC__
#define FORCEINLINE inline #define FORCEINLINE inline
#endif #endif
#include "dlmalloc_2_8_6.c"
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning (push) #pragma warning (push)
@@ -45,8 +44,13 @@
#pragma warning (disable : 4702) #pragma warning (disable : 4702)
#pragma warning (disable : 4390) /*empty controlled statement found; is this the intent?*/ #pragma warning (disable : 4390) /*empty controlled statement found; is this the intent?*/
#pragma warning (disable : 4251 4231 4660) /*dll warnings*/ #pragma warning (disable : 4251 4231 4660) /*dll warnings*/
#pragma warning (disable : 4057) /*differs in indirection to slightly different base types from*/
#pragma warning (disable : 4702) /*unreachable code*/
#pragma warning (disable : 4127) /*conditional expression is constant*/
#endif #endif
#include "dlmalloc_2_8_6.c"
#define DL_SIZE_IMPL(p) (chunksize(mem2chunk(p)) - overhead_for(mem2chunk(p))) #define DL_SIZE_IMPL(p) (chunksize(mem2chunk(p)) - overhead_for(mem2chunk(p)))
static size_t s_allocated_memory; static size_t s_allocated_memory;