]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 5 Oct 2014 19:22:25 +0000 (19:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 5 Oct 2014 19:22:25 +0000 (19:22 +0000)
MagickCore/magick-baseconfig.h
MagickCore/profile.c
PerlMagick/Makefile.PL
PerlMagick/check.sh
coders/sixel.c

index f73bde06a51d5263895868252312b33a482c8f80..bbde8db3625f59d76f5b4e4582c5e8a32a7f44cf 100644 (file)
 /* #undef HAVE__ALIGNED_MALLOC */
 
 /* Define to 1 if the system has the type `_Bool'. */
-/* #undef HAVE__BOOL */
+#ifndef MAGICKCORE_HAVE__BOOL
+#define MAGICKCORE_HAVE__BOOL 1
+#endif
 
 /* Define to 1 if you have the `_exit' function. */
 #ifndef MAGICKCORE_HAVE__EXIT
index 400f4fd3b8e0109680e5124e4500ae06c3714bd6..ef1a570fd2c48b57e93b2d4dafffd6a4456d210d 100644 (file)
@@ -1885,13 +1885,13 @@ static MagickBooleanType Sync8BimProfile(Image *image,StringInfo *profile)
       return(MagickFalse);
     id=ReadProfileMSBShort(&p,&length);
     count=(ssize_t) ReadProfileByte(&p,&length);
-    if (count > length)
+    if (count > (ssize_t) length)
       return(MagickFalse);
     p+=count;
     if ((*p & 0x01) == 0)
       (void) ReadProfileByte(&p,&length);
     count=(ssize_t) ReadProfileMSBLong(&p,&length);
-    if (count > length)
+    if (count > (ssize_t) length)
       return(MagickFalse);
     if ((id == 0x3ED) && (count == 16))
       {
index 2b947191d06aff01b0a249654676350f2b533a7d..3b25a53a2148b1854f80cd234c4d01bdff671bd6 100644 (file)
@@ -206,7 +206,7 @@ WriteMakefile
    'INC'       => $INC_magick,
 
    # C compiler
-   #'CC' => 'g++',
+   #'CC' => 'gcc -std=gnu99 -std=gnu99',
 
    # C pre-processor flags (e.g. -I & -D options)
    # 'CPPFLAGS' => "$Config{'cppflags'} -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/freetype2 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2",
@@ -215,7 +215,7 @@ WriteMakefile
    'CCFLAGS' => $CCFLAGS_magick,
 
    # Linker
-   #'LD' => $Config{'ld'} == $Config{'cc'} ? 'g++' : $Config{'ld'},
+   #'LD' => $Config{'ld'} == $Config{'cc'} ? 'gcc -std=gnu99 -std=gnu99' : $Config{'ld'},
 
    # Linker flags for building an executable
    'LDFLAGS' =>  $LDFLAGS_magick,
index 5a4b3fc78b6696f0b20c7b58fd7430d968761bce..4edd1f6137b67db499160c410e6f1a046334c466 100755 (executable)
@@ -42,10 +42,10 @@ fi
 
 if test -x PerlMagick -a -f Makefile.aperl ; then
   # Static build test incantation
-  ${MAKE} -f Makefile.aperl CC='g++' TEST_VERBOSE=1 test
+  ${MAKE} -f Makefile.aperl CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
 elif test -f Makefile -a -f Magick.o; then
   # Shared build test incantation
-  ${MAKE} CC='g++' TEST_VERBOSE=1 test
+  ${MAKE} CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
 else
   echo 'PerlMagick has not been built!'
   exit 1
index ea5a6b21cbffe6762be88bfaa07a257eeee2d6f1..62d50aaeec5d1910dbfe61522ccfd079100e35d2 100644 (file)
@@ -553,7 +553,7 @@ MagickBooleanType sixel_decode(unsigned char              /* in */  *p,
     *pheight = imsy;
     *ncolors = max_color_index + 1;
     *palette = (unsigned char *) AcquireQuantumMemory(*ncolors,4);
-    for (n = 0; n < *ncolors; ++n) {
+    for (n = 0; n < (ssize_t) *ncolors; ++n) {
         (*palette)[n * 4 + 0] = sixel_palet[n] >> 16 & 0xff;
         (*palette)[n * 4 + 1] = sixel_palet[n] >> 8 & 0xff;
         (*palette)[n * 4 + 2] = sixel_palet[n] & 0xff;
@@ -722,7 +722,7 @@ static MagickBooleanType sixel_encode_impl(unsigned char *pixels, int width,int
         return (MagickFalse);
     }
     (void) ResetMagickMemory(map, 0, len);
-    for (n = 0; n < ncolors; n++) {
+    for (n = 0; n < (ssize_t) ncolors; n++) {
         context->conv_palette[n] = n;
     }