Fix dlmalloc to compile without warnings on Mac OS.

Mac OS' GCC doesn't support #pragma GCC diagnostic.

Change-Id: I38a321a3dd1cad522a9e7475b58afac30c045aaf
diff --git a/src/dlmalloc.c b/src/dlmalloc.c
index 931a44e..2429ccc 100644
--- a/src/dlmalloc.c
+++ b/src/dlmalloc.c
@@ -7,7 +7,6 @@
 #include <stdlib.h>
 
 // Disable GCC diagnostics so that -Werror won't fail
-#pragma GCC diagnostic ignored "-Wsign-compare"
 #pragma GCC diagnostic ignored "-Wunused-variable"
 #pragma GCC diagnostic ignored "-Wempty-body"
 
diff --git a/src/dlmalloc/malloc.c b/src/dlmalloc/malloc.c
index b0192ac..8fafd05 100644
--- a/src/dlmalloc/malloc.c
+++ b/src/dlmalloc/malloc.c
@@ -4263,8 +4263,10 @@
     sp = next;
   }
   /* Reset check counter */
-  m->release_checks = ((nsegs > MAX_RELEASE_CHECK_RATE)?
-                       nsegs : MAX_RELEASE_CHECK_RATE);
+  // BEGIN android-changed: signed/unsigned mismatches
+  m->release_checks = (((size_t) nsegs > (size_t) MAX_RELEASE_CHECK_RATE)?
+      (size_t) nsegs : (size_t) MAX_RELEASE_CHECK_RATE);
+  // END android-changed
   return released;
 }