Fixes a minor warning regarding shadowing of local variable

Enabling warnings `-Wshadow` leads to a warning below. 

As the variables are not used, this warning could be safely ignored, but can just as easily be fixed.