]> asedeno.scripts.mit.edu Git - git.git/blobdiff - compat/nedmalloc/malloc.c.h
Merge branch 'maint-1.6.3' into maint
[git.git] / compat / nedmalloc / malloc.c.h
index bb0f482d9fc087a143335e159605cf08b7d51191..74c42e31626480900898aba8e12704335330e11e 100644 (file)
@@ -1270,7 +1270,9 @@ int mspace_mallopt(int, int);
 /*------------------------------ internal #includes ---------------------- */
 
 #ifdef WIN32
+#ifndef __GNUC__
 #pragma warning( disable : 4146 ) /* no "unsigned" warnings */
+#endif
 #endif /* WIN32 */
 
 #include <stdio.h>       /* for printing in malloc_stats */
@@ -2541,7 +2543,7 @@ struct malloc_params {
 static struct malloc_params mparams;
 
 /* Ensure mparams initialized */
-#define ensure_initialization() (mparams.magic != 0 || init_mparams())
+#define ensure_initialization() ((void)(mparams.magic != 0 || init_mparams()))
 
 #if !ONLY_MSPACES