From: Nuno Lopes Date: Sat, 16 Sep 2006 19:07:46 +0000 (+0000) Subject: fix compiler warnings introduced in my previous commit X-Git-Tag: php-5.2.0RC5~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d43c9c11f4fb95eb1a47cb03a492537e65f5d97a;p=php fix compiler warnings introduced in my previous commit --- diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index dcb3cf3c76..751a1e74e8 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -193,7 +193,7 @@ typedef struct { /* Font data; array of characters, one row after another. Easily included in code, also easily loaded from data files. */ - const char *data; + char *data; } gdFont; /* Text functions take these. */ diff --git a/ext/gd/libgd/gdfontg.c b/ext/gd/libgd/gdfontg.c index e18b596429..edddd0990d 100644 --- a/ext/gd/libgd/gdfontg.c +++ b/ext/gd/libgd/gdfontg.c @@ -4376,7 +4376,7 @@ gdFont gdFontGiantRep = 0, 9, 15, - gdFontGiantData + (char*)gdFontGiantData }; gdFontPtr gdFontGiant = &gdFontGiantRep; diff --git a/ext/gd/libgd/gdfontl.c b/ext/gd/libgd/gdfontl.c index 47dbb09668..093954ba3c 100644 --- a/ext/gd/libgd/gdfontl.c +++ b/ext/gd/libgd/gdfontl.c @@ -4633,7 +4633,7 @@ gdFont gdFontLargeRep = 0, 8, 16, - gdFontLargeData + (char*)gdFontLargeData }; gdFontPtr gdFontLarge = &gdFontLargeRep; diff --git a/ext/gd/libgd/gdfontmb.c b/ext/gd/libgd/gdfontmb.c index a959193652..b601105072 100644 --- a/ext/gd/libgd/gdfontmb.c +++ b/ext/gd/libgd/gdfontmb.c @@ -3863,7 +3863,7 @@ gdFont gdFontMediumBoldRep = 0, 7, 13, - gdFontMediumBoldData + (char*)gdFontMediumBoldData }; gdFontPtr gdFontMediumBold = &gdFontMediumBoldRep; diff --git a/ext/gd/libgd/gdfonts.c b/ext/gd/libgd/gdfonts.c index 5d7ebcf19b..bcc0717caf 100644 --- a/ext/gd/libgd/gdfonts.c +++ b/ext/gd/libgd/gdfonts.c @@ -3863,7 +3863,7 @@ gdFont gdFontSmallRep = 0, 6, 13, - gdFontSmallData + (char*)gdFontSmallData }; gdFontPtr gdFontSmall = &gdFontSmallRep; diff --git a/ext/gd/libgd/gdfontt.c b/ext/gd/libgd/gdfontt.c index 9e703b1497..d4e0cf9573 100644 --- a/ext/gd/libgd/gdfontt.c +++ b/ext/gd/libgd/gdfontt.c @@ -2584,7 +2584,7 @@ gdFont gdFontTinyRep = 0, 5, 8, - gdFontTinyData + (char*)gdFontTinyData }; gdFontPtr gdFontTiny = &gdFontTinyRep;