diff options
author | tabe <none@none> | 2013-02-11 12:06:21 +0900 |
---|---|---|
committer | tabe <none@none> | 2013-02-11 12:06:21 +0900 |
commit | 535eab566b4a412eef21347653fb98a48857d169 (patch) | |
tree | 63eace35d50039bc46a03edbc22ca3861f6c836b /examples | |
parent | c18dfcd3cddcd526b8a4c5de9175049d6276c0e5 (diff) | |
download | libgd-535eab566b4a412eef21347653fb98a48857d169.tar.gz |
fix -Wunused-but-set-variable
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gif.c b/examples/gif.c index 4e944a4..3e9d1bd 100644 --- a/examples/gif.c +++ b/examples/gif.c @@ -9,7 +9,7 @@ int main(void) gdImagePtr im; gdImagePtr prev =NULL; - int white, black; + int black; im = gdImageCreate(100, 100); if (!im) { @@ -23,7 +23,7 @@ int main(void) return 1; } - white = gdImageColorAllocate(im, 255, 255, 255); + gdImageColorAllocate(im, 255, 255, 255); /* allocate white as side effect */ gdImageGifAnimBegin(im, out, 1, -1); for(i = 0; i < 20; i++) { @@ -33,7 +33,7 @@ int main(void) g = rand() % 255; b = rand() % 255; - white = gdImageColorAllocate(im, 255, 255, 255); + gdImageColorAllocate(im, 255, 255, 255); /* allocate white as side effect */ black = gdImageColorAllocate(im, r, g, b); printf("(%i, %i, %i)\n",r, g, b); gdImageFilledRectangle(im, rand() % 100, rand() % 100, rand() % 100, rand() % 100, black); |