Fix a shadowed variable (#64695)
authorRichard Barnes <rbarnes@fb.com>
Thu, 9 Sep 2021 17:30:59 +0000 (10:30 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 9 Sep 2021 17:34:01 +0000 (10:34 -0700)
commit3d3ff4a9e709f709aa65e85b67364452b0223ef8
tree698e8a7e020a86f7f0f7926fa68670165920093e
parent8deaa476ac33daea6af4cf079eb13757ca86c2ad
Fix a shadowed variable (#64695)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64695

Resolves this warning:
```
caffe2/aten/src/ATen/ParallelOpenMP.h:109:63: warning: declaration of 'int64_t begin' shadows a parameter [-Wshadow=compatible-local]
  109 |   internal::invoke_parallel(begin, end, grain_size, [&](int64_t begin, int64_t end) {
      |                                                       ~~~~~~~~^~~~~
caffe2/aten/src/ATen/ParallelOpenMP.h:86:1: note: shadowed declaration is here
   85 | inline scalar_t parallel_reduce(
      |                 ~~~~~~~~~~~~~~~~
   86 |     const int64_t begin,
      | ^   ~
```

Test Plan: Sandcastle

Reviewed By: ngimel

Differential Revision: D30816128

fbshipit-source-id: 3adff6d94eea9fbd65885e88283cae10b87dba18
aten/src/ATen/ParallelOpenMP.h