Merge pull request #4541 from Krakn/minor_fix Silences an error during compilation due to an unused (but set) variable