summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-02-12 08:04:52 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-02-15 07:50:34 -0600
commit7074e8fe0de20032fc8316ecfc65d158d5a3bbe7 (patch)
treefe1618d3e11347d0d48aeb801faea2e74ea44115
parentf28c8fd956aae44b0a26e09b3cefcfa9d3762b66 (diff)
downloadpango-7074e8fe0de20032fc8316ecfc65d158d5a3bbe7.tar.gz
pango-segmentation: fix compiler warnings
-rw-r--r--utils/pango-segmentation.c6
1 files 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)
{