]> granicus.if.org Git - graphviz/commitdiff
Declaration after statement - illegal in VS.
authorEmden Gansner <erg@research.att.com>
Thu, 13 Sep 2012 15:10:15 +0000 (11:10 -0400)
committerEmden Gansner <erg@research.att.com>
Thu, 13 Sep 2012 15:10:15 +0000 (11:10 -0400)
lib/dotgen/rank.c

index c7cd6c556388d943cf95b44e15aaafb07095bd4d..07439cba8b7e78c5685c3d94fc296aca0bb10964 100644 (file)
@@ -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);