mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-30 18:05:36 +01:00 
			
		
		
		
	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:
		| @@ -283,6 +283,8 @@ static int ReadJPEG(FILE* in_file, WebPPicture* const pic) { | |||||||
|  |  | ||||||
| #else | #else | ||||||
| static int ReadJPEG(FILE* in_file, WebPPicture* const pic) { | static int ReadJPEG(FILE* in_file, WebPPicture* const pic) { | ||||||
|  |   (void)in_file; | ||||||
|  |   (void)pic; | ||||||
|   printf("JPEG support not compiled. Please install the libjpeg development " |   printf("JPEG support not compiled. Please install the libjpeg development " | ||||||
|          "package before building.\n"); |          "package before building.\n"); | ||||||
|   return 0; |   return 0; | ||||||
| @@ -378,6 +380,9 @@ static int ReadPNG(FILE* in_file, WebPPicture* const pic, int keep_alpha) { | |||||||
| } | } | ||||||
| #else | #else | ||||||
| static int ReadPNG(FILE* in_file, WebPPicture* const pic, int keep_alpha) { | static int ReadPNG(FILE* in_file, WebPPicture* const pic, int keep_alpha) { | ||||||
|  |   (void)in_file; | ||||||
|  |   (void)pic; | ||||||
|  |   (void)keep_alpha; | ||||||
|   printf("PNG support not compiled. Please install the libpng development " |   printf("PNG support not compiled. Please install the libpng development " | ||||||
|          "package before building.\n"); |          "package before building.\n"); | ||||||
|   return 0; |   return 0; | ||||||
|   | |||||||
| @@ -186,6 +186,8 @@ static int WritePNG(FILE* out_file, const WebPDecBuffer* const buffer) { | |||||||
| typedef uint32_t png_uint_32; | typedef uint32_t png_uint_32; | ||||||
|  |  | ||||||
| static int WritePNG(FILE* out_file, const WebPDecBuffer* const buffer) { | 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 " |   printf("PNG support not compiled. Please install the libpng development " | ||||||
|          "package before building.\n"); |          "package before building.\n"); | ||||||
|   printf("You can run with -ppm flag to decode in PPM format.\n"); |   printf("You can run with -ppm flag to decode in PPM format.\n"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user