Which compiler are you using and with which options that gave you warning(s)
on these lines?
Ilia
On November 14, 2002 10:08 am, Marcus Boerger wrote:
> helly Thu Nov 14 10:08:40 2002 EDT
>
> Modified files:
> /php4/ext/gd/libgd gd.c
> Log:
> Fix warnings (Marcus & Pierre-Alain Joye)
>
>
> Index: php4/ext/gd/libgd/gd.c
> diff -u php4/ext/gd/libgd/gd.c:1.25 php4/ext/gd/libgd/gd.c:1.26
> --- php4/ext/gd/libgd/gd.c:1.25 Wed Nov 13 15:02:58 2002
> +++ php4/ext/gd/libgd/gd.c Thu Nov 14 10:08:39 2002
> @@ -2215,7 +2215,7 @@
> int i, r, g, b, a;
> FuncPtr f;
>
> - int pxlOldLeft, pxlLeft, pxlSrc;
> + int pxlOldLeft, pxlLeft=0, pxlSrc;
>
> if (src->trueColor) {
> f = gdImageGetTrueColorPixel;
> @@ -2301,7 +2301,7 @@
> typedef int (*FuncPtr)(gdImagePtr, int, int);
> int i, iYPos=0, r, g, b, a;
> FuncPtr f;
> - int pxlOldLeft, pxlLeft, pxlSrc;
> + int pxlOldLeft, pxlLeft=0, pxlSrc;
>
> if (src->trueColor) {
> f = gdImageGetTrueColorPixel;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php