From a2b38227300c54c91b600bdcb501a51c8208b4a4 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 9 Jun 2015 10:37:19 -0300 Subject: [PATCH] Avoid unused variable warning in gif_format.cpp when we compile with giflib4 --- src/app/file/gif_format.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/file/gif_format.cpp b/src/app/file/gif_format.cpp index 60bf90edc..b5f1df973 100644 --- a/src/app/file/gif_format.cpp +++ b/src/app/file/gif_format.cpp @@ -144,7 +144,9 @@ private: bool GifFormat::onLoad(FileOp* fop) { +#if GIFLIB_MAJOR >= 5 int errCode = 0; +#endif GifFilePtr gif_file(DGifOpenFileHandle(open_file_descriptor_with_exception(fop->filename, "rb") #if GIFLIB_MAJOR >= 5 , &errCode @@ -544,7 +546,9 @@ void GifFormat::onDestroyData(FileOp* fop) #ifdef ENABLE_SAVE bool GifFormat::onSave(FileOp* fop) { +#if GIFLIB_MAJOR >= 5 int errCode = 0; +#endif GifFilePtr gif_file(EGifOpenFileHandle(open_file_descriptor_with_exception(fop->filename, "wb") #if GIFLIB_MAJOR >= 5 , &errCode