Fix MingW build
[alexxy/gromacs.git] / src / gromacs / utility / smalloc.c
index 3ec2536083b9f48cce715c1360ec5476921821f7..7d8e85c029b9cce1cdda8986077a3d4a0fe95ba8 100644 (file)
@@ -48,6 +48,9 @@
 #ifdef WITH_DMALLOC
 #include <dmalloc.h>
 #endif
+#ifdef HAVE__ALIGNED_MALLOC
+#include <malloc.h>
+#endif
 
 #include "gromacs/legacyheaders/gmx_fatal.h"
 
@@ -336,7 +339,7 @@ void *save_calloc_aligned(const char *name, const char *file, int line,
 }
 
 /* This routine can NOT be called with any pointer */
-void save_free_aligned(const char *name, const char *file, int line, void *ptr)
+void save_free_aligned(const char gmx_unused *name, const char gmx_unused *file, int gmx_unused line, void *ptr)
 {
     int   i, j;
     void *free = ptr;