Fixed GCC warning about shadowed variable settings