[pango/compiler-warnings: 3/13] glyphstring: Silence compiler warnings




commit fe3175fbdc5ec26a5123a5aa9383088165c05bf4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Aug 22 02:00:14 2021 -0400

    glyphstring: Silence compiler warnings

 pango/glyphstring.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index e937549a..89dec64e 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -391,7 +391,7 @@ pango_glyph_string_index_to_x (PangoGlyphString *glyphs,
   int cluster_chars = 0;
   int cluster_offset = 0;
 
-  char *p;
+  const char *p;
 
   g_return_if_fail (glyphs != NULL);
   g_return_if_fail (length >= 0);
@@ -520,7 +520,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
   int end_index = -1;
 
   int cluster_chars = 0;
-  char *p;
+  const char *p;
 
   gboolean found = FALSE;
 
@@ -616,7 +616,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
        {
          if (index)
            {
-             char *p = text + start_index;
+             const char *p = text + start_index;
              int i = 0;
 
              while (i + 1 <= cp)
@@ -635,7 +635,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
        {
          if (index)
            {
-             char *p = text + start_index;
+             const char *p = text + start_index;
              int i = 0;
 
              while (i + 1 < cp)


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