[pango] Fix more compiler warnings



commit 83de8d4c11b00a155b926867e3606db74d5fb6c2
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 18 09:49:38 2019 -0700

    Fix more compiler warnings
    
    These are clang warnings.

 pango/pango-emoji-private.h | 2 +-
 pango/pango-layout.c        | 2 +-
 tests/test-itemize.c        | 2 +-
 tests/test-shape.c          | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pango/pango-emoji-private.h b/pango/pango-emoji-private.h
index 928ad885..d5cbccf4 100644
--- a/pango/pango-emoji-private.h
+++ b/pango/pango-emoji-private.h
@@ -40,7 +40,7 @@ struct _PangoEmojiIter
   const gchar *end;
   gboolean is_emoji;
 
-  const unsigned char *types;
+  unsigned char *types;
   unsigned int n_chars;
   unsigned int cursor;
 };
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 7e450f5e..7735d6f2 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3468,7 +3468,7 @@ get_need_hyphen (PangoItem  *item,
                  int        *need_hyphen)
 {
   int i;
-  char *p;
+  const char *p;
 
   for (i = 0, p = text + item->offset; i < item->num_chars; i++, p = g_utf8_next_char (p))
     {
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index 2e99f7c3..8ddf2ec9 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -39,7 +39,7 @@ append_text (GString    *s,
              const char *text,
              int         len)
 {
-  char *p;
+  const char *p;
 
   for (p = text; p < text + len; p = g_utf8_next_char (p))
     {
diff --git a/tests/test-shape.c b/tests/test-shape.c
index da9b8ff5..dec3bf22 100644
--- a/tests/test-shape.c
+++ b/tests/test-shape.c
@@ -39,7 +39,7 @@ append_text (GString    *s,
              const char *text,
              int         len)
 {
-  char *p;
+  const char *p;
 
   for (p = text; p < text + len; p = g_utf8_next_char (p))
     {


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