]> granicus.if.org Git - php/commitdiff
fiw warnings
authorMarcus Boerger <helly@php.net>
Thu, 22 Aug 2002 16:21:32 +0000 (16:21 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 22 Aug 2002 16:21:32 +0000 (16:21 +0000)
ext/gd/libgd/gd.c
ext/gd/libgd/gd_topal.c
ext/gd/libgd/gdft.c

index 454f1bf30eda22c20d8a8b9673c0dbb2f7f48685..7d86ab1d9f74799e6f9cf5f6fb40cae4bb694970 100644 (file)
@@ -86,6 +86,10 @@ extern int gdSinT[];
 
 static void gdImageBrushApply (gdImagePtr im, int x, int y);
 static void gdImageTileApply (gdImagePtr im, int x, int y);
+static int gdFullAlphaBlend(int dst, int src);
+static int gdLayerOverlay(int dst, int src);
+static int gdAlphaBlendColor(int b1, int b2, int a1, int a2);
+static int gdAlphaOverlayColor(int src, int dst, int max);
 
 gdImagePtr
 gdImageCreate (int sx, int sy)
@@ -2577,7 +2581,7 @@ gdImageSaveAlpha (gdImagePtr im, int saveAlphaArg)
   im->saveAlphaFlag = saveAlphaArg;
 }
 
-int
+static int
 gdFullAlphaBlend (int dst, int src)
 {
        int a1, a2;
@@ -2591,7 +2595,7 @@ gdFullAlphaBlend (int dst, int src)
                );
 }
 
-int
+static int
 gdAlphaBlendColor( int b1, int b2, int a1, int a2 )
 {
        int c;
@@ -2617,7 +2621,7 @@ gdAlphaBlendColor( int b1, int b2, int a1, int a2 )
        return ( a1 * b1 + ( gdAlphaMax - a1 ) * c ) / gdAlphaMax;
 }
 
-int
+static int
 gdLayerOverlay (int dst, int src)
 {
        int a1, a2;
@@ -2630,7 +2634,7 @@ gdLayerOverlay (int dst, int src)
                );
 }
 
-int
+static int
 gdAlphaOverlayColor( int src, int dst, int max )
 {
        /* this function implements the algorithm
index 33d62741d7ef4e4dcbed154159f75a93751ec1cf..daadaabdf6a50e5dc026e0bf76f7352aa9437d65 100644 (file)
@@ -29,6 +29,7 @@
 #include "gd.h"
 #include "gdhelpers.h"
 #include <string.h>
+#include <stdlib.h>
 
 /*
  * This module implements the well-known Heckbert paradigm for color
index cc2044b171a816a8bba4c0a9f8e5b229824934d9..520e49f351ce3dbcdfac2cfda7918f71ce68bbeb 100644 (file)
@@ -703,7 +703,7 @@ gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist,
 
        /* pull in supplied extended settings */
        if (strex)      {
-               if (strex->flags & gdFTEX_LINESPACE == gdFTEX_LINESPACE)
+               if ((strex->flags & gdFTEX_LINESPACE) == gdFTEX_LINESPACE)
                        linespace = strex->linespacing;
 
        }
@@ -725,7 +725,7 @@ gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist,
   if (font->have_char_map_sjis)
     {
 #endif
-      if (tmpstr = (char *) gdMalloc (BUFSIZ))
+      if ((tmpstr = (char *) gdMalloc (BUFSIZ)) != NULL)
        {
          any2eucjp (tmpstr, string, BUFSIZ);
          next = tmpstr;