Fixes #186 ("Warnings out the wazoo")

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

No files matched your search

+5 -1
View File
@@ -35,7 +35,6 @@
#ifdef __GNUC__
#define FORCEINLINE inline
#endif
#include "dlmalloc_2_8_6.c"
#ifdef _MSC_VER
#pragma warning (push)
@@ -45,8 +44,13 @@
#pragma warning (disable : 4702)
#pragma warning (disable : 4390) /*empty controlled statement found; is this the intent?*/
#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
#include "dlmalloc_2_8_6.c"
#define DL_SIZE_IMPL(p) (chunksize(mem2chunk(p)) - overhead_for(mem2chunk(p)))
static size_t s_allocated_memory;