summaryrefslogtreecommitdiff
path: root/fc-cat/fc-cat.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-07 15:24:53 -0500
committerMike Frysinger <vapier@gentoo.org>2012-02-21 14:15:58 -0500
commitda763aa77dbaefd9be10ff5ad04ab5da39327b2e (patch)
tree13b154c67968d179862b2c39b6b1958c5ba5b323 /fc-cat/fc-cat.c
parent647569d029d0c01ce36ae7d94095ea83f40728de (diff)
fc-cat: fix pointer warning
Add a cast to avoid a gcc warning: fc-cat.c: In function 'cache_print_set': fc-cat.c:230:2: warning: pointer targets in passing argument 2 of 'FcPatternFormat' differ in signedness [-Wpointer-sign] ../fontconfig/fontconfig.h:860:1: note: expected 'const FcChar8 *' but argument is of type 'char *' Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'fc-cat/fc-cat.c')
-rw-r--r--fc-cat/fc-cat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fc-cat/fc-cat.c b/fc-cat/fc-cat.c
index 5ee947ec..c3d68296 100644
--- a/fc-cat/fc-cat.c
+++ b/fc-cat/fc-cat.c
@@ -227,7 +227,7 @@ cache_print_set (FcFontSet *set, FcStrSet *dirs, const FcChar8 *base_name, FcBoo
FcPattern *font = set->fonts[n];
FcChar8 *s;
- s = FcPatternFormat (font, "%{=fccat}\n");
+ s = FcPatternFormat (font, (const FcChar8 *) "%{=fccat}\n");
if (s)
{
printf ("%s", s);