coders/mat.c:450:15: warning: 'DecompressBlock' defined but
Posted: 2011-02-20T14:28:20-07:00
This DecompressBlock thing is used only if defined(MAGICKCORE_ZLIB_DELEGATE) but defined to return NULL otherwise, which causes a compiler warning.coders/mat.c:450:15: warning: 'DecompressBlock' defined but not used
It should be defined only if defined(MAGICKCORE_ZLIB_DELEGATE).
If you insist, make it a macro:
Code: Select all
#if defined(MAGICKCORE_ZLIB_DELEGATE)
yadda yadda yadda
#else
#define DecompressBlock(A,B,C,D) (NULL)
#endif