From: ellson Date: Mon, 23 Jul 2007 18:45:29 +0000 (+0000) Subject: janitor - clean up some warnings X-Git-Tag: LAST_LIBGRAPH~32^2~5502 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cde0a3c807a95afc6e20015510a0ada6f63cb9d;p=graphviz janitor - clean up some warnings --- diff --git a/lib/common/diagen.c b/lib/common/diagen.c index 65727cebf..3382b9deb 100644 --- a/lib/common/diagen.c +++ b/lib/common/diagen.c @@ -19,6 +19,9 @@ #include "render.h" #include +#ifdef HAVE_UNISTD_H +#include +#endif #ifdef HAVE_LIBZ #include #ifdef WIN32 diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 2e135b2a0..1bdfa8a06 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -775,8 +775,8 @@ size_html_txt(graph_t *g, htmltxt_t* ftxt, htmlenv_t* env) double ysize = 0.0; /* height of text block */ double fsize; double lsize; /* height of current line */ - double mxfsize; /* max. font size for the current line */ - double curbline = 0; /* dist. of current base line from top */ + double mxfsize = 0.0; /* max. font size for the current line */ + double curbline = 0.0; /* dist. of current base line from top */ pointf sz; int i, j, w, width; char *fname;