[gimp] plug-ins: fix warning in file-ps: assignment discards 'const' qualifier



commit e574dbe81c0b32d79f358db9ad3319f26d6f6135
Author: Jacob Boerema <jgboerema gmail com>
Date:   Tue Oct 12 17:17:38 2021 -0400

    plug-ins: fix warning in file-ps: assignment discards 'const' qualifier

 plug-ins/common/file-ps.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/plug-ins/common/file-ps.c b/plug-ins/common/file-ps.c
index d6f92e1e23..1676338249 100644
--- a/plug-ins/common/file-ps.c
+++ b/plug-ins/common/file-ps.c
@@ -1115,15 +1115,15 @@ static GimpImage *
 load_image (GFile   *file,
             GError **error)
 {
-  GimpImage  *image = NULL;
-  GimpImage **image_list, **nl;
-  gchar      *filename;
-  guint       page_count;
-  FILE       *ifp;
-  gchar      *temp;
-  gint        llx, lly, urx, ury;
-  gint        k, n_images, max_images, max_pagenum;
-  gboolean    is_epsf;
+  GimpImage    *image = NULL;
+  GimpImage   **image_list, **nl;
+  const gchar  *filename;
+  guint         page_count;
+  FILE         *ifp;
+  gchar        *temp;
+  gint          llx, lly, urx, ury;
+  gint          k, n_images, max_images, max_pagenum;
+  gboolean      is_epsf;
 
 #ifdef PS_DEBUG
   g_print ("load_image:\n resolution = %d\n", plvals.resolution);
@@ -1697,7 +1697,7 @@ ps_open (GFile            *file,
          gint             *ury,
          gboolean         *is_epsf)
 {
-  gchar        *filename;
+  const gchar  *filename;
   const gchar  *driver;
   GPtrArray    *cmdA;
   gchar       **pcmdA;


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