Back port r3142 from the v1.1 branch: don't ins...
Back port r3142 from the v1.1 branch: don't ins...

Back port r3142 from the v1.1 branch: don't instantiate variables in
for loops.  This causes a problem for projects that embed hwloc and
don't assume C99 compilers.

This commit was SVN r3143.

The following SVN revision numbers were found above:
  r3142 --> 2800f887ce301376eb9a36c6bea4808d8434516b

shekkbuilder/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc