]> granicus.if.org Git - openjpeg/commitdiff
[trunk] Remove TIFF warning handler. This help test suite run smoothly on windows...
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 7 Mar 2014 09:03:15 +0000 (09:03 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 7 Mar 2014 09:03:15 +0000 (09:03 +0000)
Fixes issue 276

tests/comparePGXimages.c

index 77714ddcafb4a4347862fa3b6e6d0a2dabd764f5..3db1dca82e41925918760ee01ba421976209a110 100644 (file)
@@ -145,6 +145,12 @@ static opj_image_t* readImageFromFileTIF(const char* filename, int nbFilenamePGX
   opj_image_cmptparm_t* param_image_read;
   int** data;
 
+  /* conformance test suite produce annoying warning:
+   * TIFFReadDirectory: Warning, /.../data/baseline/conformance/jp2_1.tif: unknown field with tag 37724 (0x935c) encountered.
+   * On Win32 this open a message box by default, so remove it from the test suite:
+   */
+  TIFFSetWarningHandler(NULL);
+
   /* If separator is empty => nb file to read is equal to one*/
   if ( strlen(separator) == 0 )
     nbFilenamePGX = 1;