From 64385e98e48e5d44d0d5a8923fc9f7049e4ea7ab Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 29 May 2012 09:42:05 +0200 Subject: fontconfig: solved compile warnings and link errors. --- fontconfig/src/fcstat.c | 2 +- fontconfig/src/fcxml.c | 3 ++- fontconfig/src/makefile | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'fontconfig') diff --git a/fontconfig/src/fcstat.c b/fontconfig/src/fcstat.c index c2d9fe9ee..0c15f8700 100644 --- a/fontconfig/src/fcstat.c +++ b/fontconfig/src/fcstat.c @@ -218,7 +218,7 @@ static int FcFStatFs (int fd, FcStatFS *statb) { const char *p = NULL; - int ret; + int ret=0; FcBool flag = FcFalse; memset (statb, 0, sizeof (FcStatFS)); diff --git a/fontconfig/src/fcxml.c b/fontconfig/src/fcxml.c index e6fdf7f7e..799352e6f 100644 --- a/fontconfig/src/fcxml.c +++ b/fontconfig/src/fcxml.c @@ -1850,7 +1850,8 @@ FcParseDir (FcConfigParse *parse) #ifdef _WIN32 FcChar8 buffer[MAX_PATH]; #endif - const FcChar8 *attr, *data; + const FcChar8 *attr; + FcChar8 *data; FcChar8 *prefix = NULL; attr = FcConfigGetAttribute (parse, "prefix"); diff --git a/fontconfig/src/makefile b/fontconfig/src/makefile index f27d62fa5..a289c5f6e 100644 --- a/fontconfig/src/makefile +++ b/fontconfig/src/makefile @@ -33,6 +33,7 @@ CSRCS = \ fcname.c \ fcpat.c \ fcserialize.c \ + fcstat.c \ fcstr.c \ fcxml.c \ \ -- cgit v1.2.3