]> pd.if.org Git - pdclib/blobdiff - opt/dlmalloc/dlmalloc.c
Fix warnings
[pdclib] / opt / dlmalloc / dlmalloc.c
index e0bebcdff03539b030fe03da8b88ce4c259208f6..18cf0d6511db5bd30a15ec6cb1440d5c2bf84b92 100644 (file)
@@ -3836,7 +3836,7 @@ static void* mmap_alloc(mstate m, size_t nb) {
 /* Realloc using mmap */\r
 static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb, int flags) {\r
   size_t oldsize = chunksize(oldp);\r
-  flags = flags; /* placate people compiling -Wunused */\r
+  (void) flags;\r
   if (is_small(nb)) /* Can't shrink mmap regions below small size */\r
     return 0;\r
   /* Keep old chunk if big enough but not too big */\r
@@ -6262,4 +6262,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r