From 535eab566b4a412eef21347653fb98a48857d169 Mon Sep 17 00:00:00 2001 From: tabe Date: Mon, 11 Feb 2013 12:06:21 +0900 Subject: fix -Wunused-but-set-variable --- tests/wbmp/wbmp_im2im.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/wbmp') diff --git a/tests/wbmp/wbmp_im2im.c b/tests/wbmp/wbmp_im2im.c index 34a0701..109d143 100644 --- a/tests/wbmp/wbmp_im2im.c +++ b/tests/wbmp/wbmp_im2im.c @@ -4,7 +4,7 @@ int main() { gdImagePtr src, dst; - int w, b; + int b; void *p; int size = 0; int status = 0; @@ -15,7 +15,7 @@ int main() printf("could not create src\n"); return 1; } - w = gdImageColorAllocate(src, 0xFF, 0xFF, 0xFF); + gdImageColorAllocate(src, 0xFF, 0xFF, 0xFF); /* allocate white for background color */ b = gdImageColorAllocate(src, 0, 0, 0); gdImageRectangle(src, 20, 20, 79, 79, b); gdImageEllipse(src, 70, 25, 30, 20, b); -- cgit v1.2.1