mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 00:35:30 +00:00
Avoid unused variable warning in gif_format.cpp when we compile with giflib4
This commit is contained in:
parent
4a6e17135e
commit
a2b3822730
@ -144,7 +144,9 @@ private:
|
|||||||
|
|
||||||
bool GifFormat::onLoad(FileOp* fop)
|
bool GifFormat::onLoad(FileOp* fop)
|
||||||
{
|
{
|
||||||
|
#if GIFLIB_MAJOR >= 5
|
||||||
int errCode = 0;
|
int errCode = 0;
|
||||||
|
#endif
|
||||||
GifFilePtr gif_file(DGifOpenFileHandle(open_file_descriptor_with_exception(fop->filename, "rb")
|
GifFilePtr gif_file(DGifOpenFileHandle(open_file_descriptor_with_exception(fop->filename, "rb")
|
||||||
#if GIFLIB_MAJOR >= 5
|
#if GIFLIB_MAJOR >= 5
|
||||||
, &errCode
|
, &errCode
|
||||||
@ -544,7 +546,9 @@ void GifFormat::onDestroyData(FileOp* fop)
|
|||||||
#ifdef ENABLE_SAVE
|
#ifdef ENABLE_SAVE
|
||||||
bool GifFormat::onSave(FileOp* fop)
|
bool GifFormat::onSave(FileOp* fop)
|
||||||
{
|
{
|
||||||
|
#if GIFLIB_MAJOR >= 5
|
||||||
int errCode = 0;
|
int errCode = 0;
|
||||||
|
#endif
|
||||||
GifFilePtr gif_file(EGifOpenFileHandle(open_file_descriptor_with_exception(fop->filename, "wb")
|
GifFilePtr gif_file(EGifOpenFileHandle(open_file_descriptor_with_exception(fop->filename, "wb")
|
||||||
#if GIFLIB_MAJOR >= 5
|
#if GIFLIB_MAJOR >= 5
|
||||||
, &errCode
|
, &errCode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user