On 11/24/2010 03:52 AM, Brice Goglin wrote:
>> 3. Warning squashes from shadowing global variables:
>> https://trac.mcs.anl.gov/projects/mpich2/changeset/7501/mpich2/trunk/src/pm/hydra/tools/bind/hwloc/hwloc
>
> Looks ok but I don't see why index/depth would be global variables.
> Aren't they reserved keywords instead?
"depth" was first defined in the parent function (main()), and redefined
within a smaller scope.
"index" was defined in string.h.
-- Pavan
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
|