summaryrefslogtreecommitdiff
path: root/test/test-conf.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2019-11-06 20:28:41 +0900
committerAkira TAGOH <akira@tagoh.org>2019-11-06 20:28:58 +0900
commit23ab038281fe59476a85bee02ad0ceb419095bdb (patch)
tree52f296b4dd048e9d9a6b96fa4b311e02e48e50ca /test/test-conf.c
parentaa8c8cfa9fb2563482336249e3f56459099fcf6e (diff)
downloadfontconfig-23ab038281fe59476a85bee02ad0ceb419095bdb.tar.gz
Fix gcc warnings with -Wpointer-sign
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/184
Diffstat (limited to 'test/test-conf.c')
-rw-r--r--test/test-conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-conf.c b/test/test-conf.c
index a8ff1bb..d4de21a 100644
--- a/test/test-conf.c
+++ b/test/test-conf.c
@@ -69,7 +69,7 @@ build_pattern (json_object *obj)
}
else if (json_object_get_type (iter.val) == json_type_string)
{
- const FcConstant *c = FcNameGetConstant (json_object_get_string (iter.val));
+ const FcConstant *c = FcNameGetConstant ((const FcChar8 *) json_object_get_string (iter.val));
FcBool b;
if (c)
@@ -95,7 +95,7 @@ build_pattern (json_object *obj)
else
{
v.type = FcTypeString;
- v.u.s = json_object_get_string (iter.val);
+ v.u.s = (const FcChar8 *) json_object_get_string (iter.val);
}
}
else if (json_object_get_type (iter.val) == json_type_null)
@@ -445,7 +445,7 @@ load_config (FcConfig *config, char *file)
fread (buf, (size_t)len, sizeof (char), fp);
buf[len] = 0;
- ret = FcConfigParseAndLoadFromMemory (config, buf, FcTrue);
+ ret = FcConfigParseAndLoadFromMemory (config, (const FcChar8 *) buf, FcTrue);
bail1:
fclose (fp);
if (buf)