[gimp/gimp-2.10] plug-ins: fix TIFF warnings about unknown tags not filtered out anymore



commit 54442fc7b7cd2f46490a8ebba9aa85daeb43b7f6
Author: Jacob Boerema <jgboerema gmail com>
Date:   Mon Aug 22 12:36:34 2022 -0400

    plug-ins: fix TIFF warnings about unknown tags not filtered out anymore
    
    Due to a change in the format string in libtiff, warnings about unknown
    fields were not filtered out anymore.
    
    Adjust our filtering of warning messages so we catch this again since
    end-users don't need to worry about this and we don't need the
    possible extra issues.
    
    (cherry picked from commit ac5a6e56b76b46a4001f25894806576b48630987)

 plug-ins/file-tiff/file-tiff-io.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/file-tiff/file-tiff-io.c b/plug-ins/file-tiff/file-tiff-io.c
index 4f58990107..0f5056f7d1 100644
--- a/plug-ins/file-tiff/file-tiff-io.c
+++ b/plug-ins/file-tiff/file-tiff-io.c
@@ -192,7 +192,9 @@ tiff_io_warning (const gchar *module,
   /* for older versions of libtiff? */
   else if (! strcmp (fmt, "unknown field with tag %d (0x%x) ignored") ||
            /* Since libtiff 4.0.0alpha. */
-           ! strcmp (fmt, "Unknown field with tag %d (0x%x) encountered"))
+           ! strcmp (fmt, "Unknown field with tag %d (0x%x) encountered") ||
+           /* Since libtiff 4.3.0rc1. */
+           ! strcmp (fmt, "Unknown field with tag %u (0x%x) encountered"))
     {
       va_list ap_test;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]