From 24698d525070f805e3420ab873b044ef57728f7f Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Thu, 13 Sep 2012 11:10:15 -0400 Subject: [PATCH] Declaration after statement - illegal in VS. --- lib/dotgen/rank.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.50.1