Fix harmless compiler warnings in the progress callback logic.