From a9c34164f2c16fad92476fca54a4034c6f08e6fa Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 7 Nov 2011 15:24:53 -0500 Subject: [PATCH] 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 --- fc-cat/fc-cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fc-cat/fc-cat.c b/fc-cat/fc-cat.c index 5ee947e..c3d6829 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); -- 2.39.5