gif2webp: silence a unused param warning

Change-Id: I694857fc6adb011f19d14780de4f8c71e2719707
This commit is contained in:
James Zern 2013-03-17 17:04:54 -07:00
parent 7d9fdc2389
commit 9acb17dea4

View File

@ -142,10 +142,12 @@ static void DisplayGifError(const GifFileType* const gif) {
const char* error_str = (const char*)GifErrorString(gif->Error);
#else
const char* error_str = (const char*)GifErrorString();
(void)gif;
#endif
if (error_str == NULL) error_str = "Unknown error";
fprintf(stderr, "GIFLib Error: %s\n", error_str);
#else
(void)gif;
fprintf(stderr, "GIFLib Error: ");
PrintGifError();
fprintf(stderr, "\n");