From 08f990a9464c2a8baa9f3b4a6b8b3b8d1df8d9a0 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Thu, 8 Apr 2010 17:11:35 +0200 Subject: [PATCH] Use int instead of size_t to silence warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit gcc-4.4.1 was complaining: fontconv.c: In function ‘mapWeightToName’: fontconv.c:114: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’ fontconv.c:114: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’ fontconv.c: In function ‘xlfdToFc’: fontconv.c:157: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’ fontconv.c:157: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’ --- util/fontconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/fontconv.c b/util/fontconv.c index e3263b4e..4c420cc0 100644 --- a/util/fontconv.c +++ b/util/fontconv.c @@ -45,7 +45,7 @@ static int countChar(char *str, char c) typedef struct str { char *str; - size_t len; + int len; } str; #define XLFD_TOKENS 14 -- 2.11.4.GIT