windowscodecs: Suppress libtiff warnings.

This commit is contained in:
Dmitry Timoshkov 2012-06-27 20:33:14 +09:00 committed by Alexandre Julliard
parent 3a44c305a8
commit 6207d9642c
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,8 @@ MAKE_FUNCPTR(TIFFReadEncodedStrip);
MAKE_FUNCPTR(TIFFReadEncodedTile); MAKE_FUNCPTR(TIFFReadEncodedTile);
MAKE_FUNCPTR(TIFFSetDirectory); MAKE_FUNCPTR(TIFFSetDirectory);
MAKE_FUNCPTR(TIFFSetField); MAKE_FUNCPTR(TIFFSetField);
MAKE_FUNCPTR(TIFFSetWarningHandler);
MAKE_FUNCPTR(TIFFSetWarningHandlerExt);
MAKE_FUNCPTR(TIFFWriteDirectory); MAKE_FUNCPTR(TIFFWriteDirectory);
MAKE_FUNCPTR(TIFFWriteScanline); MAKE_FUNCPTR(TIFFWriteScanline);
#undef MAKE_FUNCPTR #undef MAKE_FUNCPTR
@ -99,6 +101,8 @@ static void *load_libtiff(void)
LOAD_FUNCPTR(TIFFReadEncodedTile); LOAD_FUNCPTR(TIFFReadEncodedTile);
LOAD_FUNCPTR(TIFFSetDirectory); LOAD_FUNCPTR(TIFFSetDirectory);
LOAD_FUNCPTR(TIFFSetField); LOAD_FUNCPTR(TIFFSetField);
LOAD_FUNCPTR(TIFFSetWarningHandler);
LOAD_FUNCPTR(TIFFSetWarningHandlerExt);
LOAD_FUNCPTR(TIFFWriteDirectory); LOAD_FUNCPTR(TIFFWriteDirectory);
LOAD_FUNCPTR(TIFFWriteScanline); LOAD_FUNCPTR(TIFFWriteScanline);
#undef LOAD_FUNCPTR #undef LOAD_FUNCPTR
@ -107,6 +111,9 @@ static void *load_libtiff(void)
result = libtiff_handle; result = libtiff_handle;
pTIFFSetWarningHandler(NULL);
pTIFFSetWarningHandlerExt(NULL);
LeaveCriticalSection(&init_tiff_cs); LeaveCriticalSection(&init_tiff_cs);
return result; return result;
} }