get rid of unused return value from write callback

This commit is contained in:
Sean Barrett
2015-09-14 05:57:42 -07:00
parent b4477803cb
commit 93b2b82996
2 changed files with 12 additions and 6 deletions

View File

@ -53,7 +53,7 @@ void test_ycbcr(void)
float hdr_data[200][200][3];
void dummy(void *context, void *data, int len)
void dummy_write(void *context, void *data, int len)
{
static char dummy[1024];
if (len > 1024) len = 1024;
@ -97,6 +97,9 @@ int main(int argc, char **argv)
stbi_write_png(stb_sprintf("output/%s.png", fname), w, h, 4, data, w*4);
stbi_write_bmp(stb_sprintf("output/%s.bmp", fname), w, h, 4, data);
stbi_write_tga(stb_sprintf("output/%s.tga", fname), w, h, 4, data);
stbi_write_png_to_func(dummy_write,0, w, h, 4, data, w*4);
stbi_write_bmp_to_func(dummy_write,0, w, h, 4, data);
stbi_write_tga_to_func(dummy_write,0, w, h, 4, data);
free(data);
} else
printf("FAILED 4\n");