[fixup add-log] Fix shadowing error in gcc