Util: Fix warning when libpng is disabled

This commit is contained in:
Vicki Pfau 2023-08-10 12:43:29 -07:00
parent bbdcb8b83b
commit f637b5b1e8
1 changed files with 4 additions and 0 deletions

View File

@ -296,6 +296,10 @@ bool mImageSaveVF(const struct mImage* image, struct VFile* vf, const char* form
if (strcasecmp(format, "png") == 0) {
return mImageSavePNG(image, vf);
}
#else
UNUSED(image);
UNUSED(vf);
UNUSED(format);
#endif
return false;
}