Avoid GCC name shadowing warning.

Get rid of GCC warning reported here https://github.com/danmar/cppcheck/commit/615eb32fdc6b2bce2409e38e6777760aa8f3e2d5#commitcomment-7284568