summaryrefslogtreecommitdiff
path: root/tests/gdimagecopy
diff options
context:
space:
mode:
authortabe <none@none>2013-02-11 12:06:21 +0900
committertabe <none@none>2013-02-11 12:06:21 +0900
commit535eab566b4a412eef21347653fb98a48857d169 (patch)
tree63eace35d50039bc46a03edbc22ca3861f6c836b /tests/gdimagecopy
parentc18dfcd3cddcd526b8a4c5de9175049d6276c0e5 (diff)
downloadlibgd-535eab566b4a412eef21347653fb98a48857d169.tar.gz
fix -Wunused-but-set-variable
Diffstat (limited to 'tests/gdimagecopy')
-rw-r--r--tests/gdimagecopy/bug00007.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gdimagecopy/bug00007.c b/tests/gdimagecopy/bug00007.c
index 2426948..79fe757 100644
--- a/tests/gdimagecopy/bug00007.c
+++ b/tests/gdimagecopy/bug00007.c
@@ -8,12 +8,12 @@
int main()
{
gdImagePtr dst_tc, src;
- int c0,c1;
+ int c1;
src = gdImageCreate(5,5);
gdImageAlphaBlending(src, 0);
- c0 = gdImageColorAllocate(src, 255,255,255);
+ gdImageColorAllocate(src, 255,255,255); /* allocate white for background color */
c1 = gdImageColorAllocateAlpha(src, 255,0,0,70);
gdImageFilledRectangle(src, 0,0, 4,4, c1);