examples: quiet warnings

When WEBP_HAVE_(JPEG|PNG) were undefined the stub functions would
produce warnings for unused parameters.

Change-Id: I79b2457c769d1f9382be834162de019c5427f94b
This commit is contained in:
James Zern
2011-06-24 16:50:02 -04:00
parent 13ed94b8ad
commit 0805706252
2 changed files with 7 additions and 0 deletions

View File

@ -186,6 +186,8 @@ static int WritePNG(FILE* out_file, const WebPDecBuffer* const buffer) {
typedef uint32_t png_uint_32;
static int WritePNG(FILE* out_file, const WebPDecBuffer* const buffer) {
(void)out_file;
(void)buffer;
printf("PNG support not compiled. Please install the libpng development "
"package before building.\n");
printf("You can run with -ppm flag to decode in PPM format.\n");