Correct fix for unused variable result warning

Xcode was giving an 'Expression result unused' warning because a
variable 'i' was referenced in the initialisation part of a for loop. We
actually don't need to reference it there at all, and can just leave the
initialisation part empty. This both works and avoids Xcode's warning.