Refs #8234. Replaced increments with a simple plus operations.
Merge remote branch 'origin/feature/8234_sequence_point_warnings'