From d2b4b4a9efe9a52a10faa97faca7dd248ebbc08f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 31 Mar 2008 10:47:48 +0000 Subject: [PATCH] Explicit casts to placate OS X gcc's pedantic type-check warnings. [originally from svn r7958] --- unix/gtkfont.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/unix/gtkfont.c b/unix/gtkfont.c index 88859d10..a2d8f40c 100644 --- a/unix/gtkfont.c +++ b/unix/gtkfont.c @@ -566,13 +566,13 @@ static void x11font_enum_fonts(GtkWidget *widget, p += sprintf(p, "%04d%04d%s%04d%04d%s%04d%04d%s%04d%s%04d%s", weightkey, - strlen(components[2]), components[2], + (int)strlen(components[2]), components[2], slantkey, - strlen(components[3]), components[3], + (int)strlen(components[3]), components[3], setwidthkey, - strlen(components[4]), components[4], - strlen(components[10]), components[10], - strlen(components[5]), components[5]); + (int)strlen(components[4]), components[4], + (int)strlen(components[10]), components[10], + (int)strlen(components[5]), components[5]); assert(p - tmp < thistmpsize);