From: Emden Gansner Date: Thu, 13 Sep 2012 15:10:15 +0000 (-0400) Subject: Declaration after statement - illegal in VS. X-Git-Tag: LAST_LIBGRAPH~32^2~311 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24698d525070f805e3420ab873b044ef57728f7f;p=graphviz Declaration after statement - illegal in VS. --- diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index c7cd6c556..07439cba8 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -1242,11 +1242,12 @@ void dot2_rank(graph_t * g, aspect_t* asp) int ssize; int ncc, maxiter = INT_MAX; char *s; + graph_t *Xg; #ifdef ALLOW_LEVELS attrsym_t* N_level; #endif Last_node = NULL; - graph_t *Xg = agopen("level assignment constraints", Agstrictdirected, 0); + Xg = agopen("level assignment constraints", Agstrictdirected, 0); agbindrec(Xg,"level graph rec",sizeof(Agraphinfo_t),TRUE); agpushdisc(Xg,&mydisc,infosizes);