folly/Foreach.h: avoid shadowing warnings
authorJim Meyering <meyering@fb.com>
Sun, 5 Mar 2017 18:32:27 +0000 (10:32 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 5 Mar 2017 18:39:55 +0000 (10:39 -0800)
commit623e0f3bd82dedb0478fe768557089ee03bfa890
tree0bd3832682e3b1977ab83b0face52457dc516596
parent6f8d37dc510dfbbf8beacc67b23d937bff69182d
folly/Foreach.h: avoid shadowing warnings

Summary:
Fix warnings exposed by gcc's -Wshadow-compatible-local.
Don't use a hard-coded names that would cause shadowing with each nested use of this macro.

This avoids errors like the following:

  folly/Foreach.h:94:18: error: declaration of 'FOR_EACH_privateCount' shadows a previous local [-Werror=shadow-compatible-local]
  folly/Foreach.h:91:12: error: shadowed declaration is here [-Werror=shadow-compatible-local]

Reviewed By: yfeldblum

Differential Revision: D4656783

fbshipit-source-id: d7cd820fb04ccd78242f7487e2b219dc300709b6
folly/Foreach.h