Cleanup loop to fix warnings with old gcc versions