From 33fd99257cc46ce90313734bbd1c0821f7792f88 Mon Sep 17 00:00:00 2001 From: gotmor Date: Thu, 12 Feb 2009 11:16:02 +0000 Subject: fixed casting warning git-svn-id: http://dzen.googlecode.com/svn/trunk@245 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- draw.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/draw.c b/draw.c index 9b616fb..8c65078 100644 --- a/draw.c +++ b/draw.c @@ -336,7 +336,9 @@ parse_line(const char *line, int lnr, int align, int reverse, int nodraw) { /* X stuff */ long lastfg = dzen.norm[ColFG], lastbg = dzen.norm[ColBG]; Fnt *cur_fnt = NULL; +#ifndef DZEN_XFT XGCValues gcv; +#endif Drawable pm=0, bm; #ifdef DZEN_XPM int free_xpm_attrib = 0; @@ -351,7 +353,7 @@ parse_line(const char *line, int lnr, int align, int reverse, int nodraw) { char *xftcs; int xftcs_f=0; - xftcs = dzen.fg; + xftcs = (char *)dzen.fg; #endif @@ -621,7 +623,7 @@ parse_line(const char *line, int lnr, int align, int reverse, int nodraw) { xftcs = estrdup(tval); xftcs_f = 1; } else { - xftcs = dzen.fg; + xftcs = (char *)dzen.fg; xftcs_f = 0; } #endif @@ -891,7 +893,7 @@ parse_line(const char *line, int lnr, int align, int reverse, int nodraw) { xftcs = estrdup(tval); xftcs_f = 1; } else { - xftcs = dzen.fg; + xftcs = (char *)dzen.fg; xftcs_f = 0; } #endif -- cgit v1.2.3-54-g00ecf