]> xenbits.xensource.com Git - people/andrewcoop/hwloc.git/commitdiff
Fix mixed declaration/code warning
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 6 Nov 2013 16:25:43 +0000 (17:25 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 6 Nov 2013 16:25:43 +0000 (17:25 +0100)
utils/lstopo-draw.c

index 158e6b693afda9b1ad1e1d72762a0f74dfb3df97..b98430fab2be0aada2dfe780dcd835f7e4496df6 100644 (file)
@@ -645,6 +645,7 @@ bridge_draw(hwloc_topology_t topology, struct draw_methods *methods, int logical
   unsigned mywidth = 2*gridsize + gridsize + speedwidth;
   unsigned totwidth, totheight;
   struct style style;
+  unsigned center;
 
   DYNA_CHECK();
 
@@ -659,7 +660,6 @@ bridge_draw(hwloc_topology_t topology, struct draw_methods *methods, int logical
     unsigned bottom = 0, top = 0;
     RECURSE_BEGIN(level, 0);
     RECURSE_FOR()
-      unsigned center;
       RECURSE_CALL_FUN(methods);
 
       /* Line to PCI device */