From 71c3f29df80622bc4f5ec44c23bf50cb28705cea Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Tue, 17 Mar 2026 22:30:47 -0300 Subject: [PATCH] plug-ins: Fix warnings about unused profile_label and cmyk_profile in file-jp2 --- plug-ins/common/file-jp2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plug-ins/common/file-jp2.c b/plug-ins/common/file-jp2.c index 5c99a093d4..fed4d50d41 100644 --- a/plug-ins/common/file-jp2.c +++ b/plug-ins/common/file-jp2.c @@ -1276,8 +1276,11 @@ export_dialog (GimpProcedure *procedure, GimpImage *image) { GtkWidget *dialog; +#if ((OPJ_VERSION_MAJOR == 2 && OPJ_VERSION_MINOR == 5 && OPJ_VERSION_BUILD >= 3) || \ + (OPJ_VERSION_MAJOR == 2 && OPJ_VERSION_MINOR > 5) || OPJ_VERSION_MAJOR > 2) GtkWidget *profile_label; GimpColorProfile *cmyk_profile = NULL; +#endif gboolean run; dialog = gimp_export_procedure_dialog_new (GIMP_EXPORT_PROCEDURE (procedure),