]> granicus.if.org Git - graphviz/commit
dotgen: remove shadowing of 'n' in 'build_ranks'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 8 May 2022 20:47:20 +0000 (13:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 27 May 2022 04:54:40 +0000 (21:54 -0700)
commit0c2dac36fd0f2172af97220b49dafaff184adec6
tree5605c5e2f8f34c78282a4432be60880916a1eb72
parent8816768e0c372db320180390b1c54f469279171d
dotgen: remove shadowing of 'n' in 'build_ranks'

The compiler was warning:

  mincross.c:1404:17: warning: declaration of 'n' shadows a previous local
    [-Wshadow]
   1404 |             int n, ndiv2;
        |                 ^
  mincross.c:1359:13: note: shadowed declaration is here
   1359 |     node_t *n, *n0;
        |             ^

We can trivially rephrase the code to avoid this noise.
lib/dotgen/mincross.c