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 /tests/wbmp | |
parent | c18dfcd3cddcd526b8a4c5de9175049d6276c0e5 (diff) | |
download | libgd-535eab566b4a412eef21347653fb98a48857d169.tar.gz |
fix -Wunused-but-set-variable
Diffstat (limited to 'tests/wbmp')
-rw-r--r-- | tests/wbmp/wbmp_im2im.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |