[pango/minor-cleanups: 2/4] pango-segmentation: fix compiler warnings




commit 9aeb507f357ac678ca86c4de01e4217bd6c1a33f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 12 08:04:52 2022 -0500

    pango-segmentation: fix compiler warnings

 utils/pango-segmentation.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/utils/pango-segmentation.c b/utils/pango-segmentation.c
index 31cefdbd..65734dc4 100644
--- a/utils/pango-segmentation.c
+++ b/utils/pango-segmentation.c
@@ -141,8 +141,8 @@ show_segmentation (const char *input,
 int
 main (int argc, char *argv[])
 {
-  char *opt_kind = "grapheme";
-  char *opt_text = NULL;
+  const char *opt_kind = "grapheme";
+  const char *opt_text = NULL;
   gboolean opt_version = FALSE;
   GOptionEntry entries[] = {
     { "kind", 0, 0, G_OPTION_ARG_STRING, &opt_kind, "Kind of boundary (grapheme/word/line/sentence)", "KIND" 
},
@@ -176,7 +176,7 @@ main (int argc, char *argv[])
 
   if (opt_text)
     {
-      text = opt_text;
+      text = (char *)opt_text;
     }
   else if (argc > 1)
     {


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