Removes index and remainder uses as old gcc raise a warning for them.