From: Magnus Jacobsson Date: Sat, 7 Nov 2020 12:51:07 +0000 (+0100) Subject: Remove 1 -Wunused-but-set-variable warning in maze.c X-Git-Tag: 2.46.0~11^2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d68ad40cb90abf9a028d02080e356ff41791272d;p=graphviz Remove 1 -Wunused-but-set-variable warning in maze.c --- diff --git a/lib/ortho/maze.c b/lib/ortho/maze.c index e343f3f6e..450837a98 100644 --- a/lib/ortho/maze.c +++ b/lib/ortho/maze.c @@ -319,7 +319,7 @@ chkSgraph (sgraph* g) static sgraph* mkMazeGraph (maze* mp, boxf bb) { - int nsides, i, ncnt, maxdeg; + int nsides, i, maxdeg; int bound = 4*mp->ncells; sgraph* g = createSGraph (bound + 2); Dt_t* vdict = dtopen(&vdictDisc,Dtoset); @@ -332,7 +332,6 @@ mkMazeGraph (maze* mp, boxf bb) * a pointer to the cell. */ sides = N_NEW(4*mp->ncells, snode*); - ncnt = 0; for (i = 0; i < mp->ncells; i++) { cell* cp = mp->cells+i; snode* np;