From: Ivan Maidanski Date: Wed, 28 Dec 2011 06:42:49 +0000 (+0400) Subject: Fix compiler warning in GC_dyld_image_add/remove (Darwin) X-Git-Tag: gc7_2~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23398db72059f99834ffa4a862b17d16f218c4b0;p=gc Fix compiler warning in GC_dyld_image_add/remove (Darwin) * dyn_load.c (GC_dyld_image_add, GC_dyld_image_remove): Declare i, j local variables as unsigned (to prevent compiler warning in a comparison involving sizeof) --- diff --git a/dyn_load.c b/dyn_load.c index 3d5aad36..7803c955 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -1233,7 +1233,7 @@ STATIC void GC_dyld_image_add(const struct GC_MACH_HEADER *hdr, intptr_t slide) { unsigned long start, end; - int i, j; + unsigned i, j; const struct GC_MACH_SECTION *sec; const char *name; GC_has_static_roots_func callback = GC_has_static_roots; @@ -1298,7 +1298,7 @@ STATIC void GC_dyld_image_remove(const struct GC_MACH_HEADER *hdr, intptr_t slide) { unsigned long start, end; - int i, j; + unsigned i, j; const struct GC_MACH_SECTION *sec; char secnam[16]; const char *fmt;