X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_afm.c;h=8f0228a12c27d63d1dd39658dc515b80fd9bb26d;hb=5a7eb5b62b485b61ddb80a40ef22f4337cf2289f;hp=0bb0ac4f0cf30ec0ac6459f094533e928b8ef113;hpb=7c3ed7b5f7e8ce9b266631dc479c02e795acb180;p=rrdtool.git diff --git a/src/rrd_afm.c b/src/rrd_afm.c index 0bb0ac4..8f0228a 100644 --- a/src/rrd_afm.c +++ b/src/rrd_afm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.4 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.5 Copyright by Tobi Oetiker, 1997-2005 **************************************************************************** * rrd_afm.h Parsing afm tables to find width of strings. ****************************************************************************/ @@ -20,6 +20,8 @@ #include #endif +#include "unused.h" + #if 0 # define DEBUG 1 # define DLOG(x) fprintf x @@ -185,8 +187,8 @@ static long afm_find_kern(const afm_fontinfo *fontinfo, } /* measure width of a text string */ -double afm_get_text_width ( double start, const char* font, double size, - double tabwidth, const char* text) +double afm_get_text_width ( double UNUSED(start), const char* font, double size, + double UNUSED(tabwidth), const char* text) { const afm_fontinfo *fontinfo = afm_findfont(font); long width = 0;